Answer the question
In order to leave comments, you need to log in
How to read local files in the context of a browser extension?
I am writing a browser extension. To work, you need to store somewhere and somehow read a fairly large (up to 50 megabytes) array BigUint64Array
. The most logical option for me is to store in a file and read it at startup. But how to implement this without user intervention (input)? I suppose if you somehow embed it in the code, then the page loading speed will significantly decrease, and if you download from the server, then people in incognito mode will have to download conditional 50 megabytes after each browser launch ...
Answer the question
In order to leave comments, you need to log in
Add "unlimitedStorage"
to manifest.json
And store it in browser.storage.local
or in IndexedDB
.
Bonus:
chrome.storage.local.get(console.log);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question