Open TheAdnan opened 6 years ago
For reference, take a look at the storage handling methods in this script: github.com/TheAdnan/Session-resurrection/blob/master/sessions-pop-up/save-session.js
currently it loads from a bukhari.json. where should i add a menu to let users load their own hadith.json? by rightclick and selecting menu or the issue wants something else?
That won't be necessary, just make sure that the hadith load from the local.storage, and if the storage is empty, set it using the data from the bukhari.json file.
you've already done it here https://github.com/TheAdnan/hadith-of-the-day/blob/master/extension/hadith/script.js
first you checked for null in local storage the if it is you set local storage to bukari.json
Nope, it doesn't, I've tried but I didn't know how to set it at the time.
Where is bukari.json ?!
Note: Include
"storage"
inmanifest.json