aboutsummaryrefslogtreecommitdiff
path: root/manifest.json
diff options
context:
space:
mode:
authorjahoti <jahoti@tilde.team>2021-06-23 01:38:07 +0000
committerjahoti <jahoti@tilde.team>2021-06-23 01:38:07 +0000
commitc744eb0ef712cb8391b5092c988a200fd1c0a192 (patch)
tree919469c046cb7280f1c771f0ca375a4237429eac /manifest.json
parentcad85119a1946db08a3529c360376445a5302659 (diff)
downloadbrowser-extension-c744eb0ef712cb8391b5092c988a200fd1c0a192.tar.gz
browser-extension-c744eb0ef712cb8391b5092c988a200fd1c0a192.zip
Fix storage initialization on Icecat 60
This patch fixes storage initialization on Gecko browsers by switching from using a background page to using a list of scripts. It remains a mystery why that should have any effect; the only hint is that browser.runtime.onInstalled does not fire when called from a script loaded in a background page. Signed-off-by: jahoti <jahoti@tilde.team>
Diffstat (limited to 'manifest.json')
-rw-r--r--manifest.json19
1 files changed, 18 insertions, 1 deletions
diff --git a/manifest.json b/manifest.json
index d3a5980..f7369c6 100644
--- a/manifest.json
+++ b/manifest.json
@@ -73,7 +73,24 @@
"web_accessible_resources": [
],
"background": {
- "page": "background/background.html"
+ "persistent": true,
+ "scripts": [
+ "common/stored_types.js",
+ "common/lock.js",
+ "common/once.js",
+ "common/browser.js",
+ "background/storage.js",
+ "background/message_server.js",
+ "common/connection_types.js",
+ "background/storage_server.js",
+ "common/url_item.js",
+ "common/sha256.js",
+ "background/settings_query.js",
+ "background/page_actions_server.js",
+ "common/gen_unique.js",
+ "background/policy_injector.js",
+ "background/main.js"
+ ]
},
"content_scripts": [
{