From 286b6b05464e343387a8c763fe85e1db49326072 Mon Sep 17 00:00:00 2001 From: Mat Kelly Date: Sun, 20 Dec 2020 16:09:37 -0500 Subject: [PATCH] Begin adapting to manifest v3 for #117 --- manifest.json | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/manifest.json b/manifest.json index 0dde29f..4cfe6ea 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "manifest_version": 2, + "manifest_version": 3, "name": "WARCreate", "version": "0.2019.1.19", "version_name": "0.2019.1.19 build 612", @@ -11,7 +11,7 @@ "128" : "icons/icon-128.png" }, "background": { - "page":"html/background.html" + "service_worker": "code.js" }, "homepage_url": "http://warcreate.com", @@ -21,7 +21,7 @@ "js": ["js/jquery-2.1.1.min.js","js/content.js"] } ], - "page_action" : + "action" : { "default_icon" : "icons/icon-19.png", "default_title" : "WARCreate", @@ -29,21 +29,25 @@ }, "permissions" : [ "webRequest", - "webRequestBlocking", + // "webRequestBlocking", "tabs", "activeTab", "storage", "unlimitedStorage", - "http://*/*", - "http://*/", - "*://*/*", "notifications" ], + "host_permissions": [ + "http://*/*", + "http://*/", + "*://*/*" + ], "options_ui": { "page": "html/options.html" }, "short_name" : "WARCreate", - "content_security_policy": "script-src 'self'; object-src 'self'", - "minimum_chrome_version": "23.0" + "content_security_policy": { + "extension_pages": "script-src 'self'; object-src 'self'" + }, + "minimum_chrome_version": "87" }