diff --git a/manifest/chrome.json b/manifest/chrome.json index d45fc22c..f58181d0 100644 --- a/manifest/chrome.json +++ b/manifest/chrome.json @@ -1,12 +1,12 @@ { - "manifest_version": 2, + "manifest_version": 3, "offline_enabled": true, "default_locale": "en", "name": "__MSG_name__", "description": "__MSG_description__", "version": "7.0.0", "homepage_url": "https://muetab.com", - "browser_action": { + "action": { "default_icon": "icons/128x128.png" }, "chrome_url_overrides": { @@ -17,9 +17,11 @@ "48": "icons/48x48.png", "128": "icons/128x128.png" }, - "content_security_policy": "script-src 'self' https://api.bing.com https://www.google.com; object-src 'self'", + "content_security_policy": { + "extension_pages": "script-src 'self'; object-src 'self'", + "sandbox": "script-src 'self' https://api.bing.com https://www.google.com; object-src 'self'" + }, "background": { - "persistent": false, - "scripts": ["background-chrome.js"] + "service_worker": "background-chrome.js" } -} +} \ No newline at end of file diff --git a/manifest/firefox.json b/manifest/firefox.json index c378e150..a2d0c0ac 100644 --- a/manifest/firefox.json +++ b/manifest/firefox.json @@ -1,10 +1,10 @@ { - "manifest_version": 2, + "manifest_version": 3, "name": "Mue", "description": "Fast, open and free-to-use new tab page for modern browsers.", "version": "7.0.0", "homepage_url": "https://muetab.com", - "browser_action": { + "action": { "default_icon": "icons/128x128.png" }, "chrome_url_overrides": { @@ -18,5 +18,8 @@ "chrome_settings_overrides": { "homepage": "index.html" }, - "content_security_policy": "script-src 'self' https://api.bing.com https://www.google.com; object-src 'self'" + "content_security_policy": { + "extension_pages": "script-src 'self'; object-src 'self'", + "sandbox": "script-src 'self' https://api.bing.com https://www.google.com; object-src 'self'" + } }