Answer the question
In order to leave comments, you need to log in
How to bypass the localStorage limit for an extension?
What are the workarounds in 2018? Or what to use instead of localStorage?
"permissions": [
"tabs",
"unlimitedStorage"
],
Answer the question
In order to leave comments, you need to log in
The correct answer was - indexedDB .
Although this is a powerful tool, it also copes with the simple task of storing a string.
For the test, I saved 30 megabytes - I ate it.
Even unlimitedStorage is not needed, everything works anyway.
Chrome (and firefox) has an unlimitedStorage setting in permissions that allows you to use local storage without restrictions. https://developer.chrome.com/extensions/declare_pe...
Just use chrome.storage.local instead of localStorage
As already suggested by SmInc and Vladimir Proskurin - unlimitedStorage.
If this does not work, try another gzip https://github.com/nodeca/pako
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question