From bded04e40f0a47013a1d5104eb1ad7e5ea46a26f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Mon, 14 Oct 2024 02:01:25 +0100 Subject: [PATCH] fix #90: update to manifest v3 --- extension-manifest.json | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/extension-manifest.json b/extension-manifest.json index b31cb73..af7c4f3 100644 --- a/extension-manifest.json +++ b/extension-manifest.json @@ -1,18 +1,23 @@ { - "manifest_version": 2, + "manifest_version": 3, + "content_security_policy": { + "extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self';" + }, "name": "音乐解锁", "short_name": "音乐解锁", "icons": { - "128": "./img/icons/msapplication-icon-144x144.png" + "16": "img/icons/favicon-16x16.png", + "32": "img/icons/favicon-32x32.png", + "192": "img/icons/android-chrome-192x192.png", + "512": "img/icons/android-chrome-512x512.png" }, "description": "在任何设备上解锁已购的加密音乐!", - "permissions": [ - "storage" - ], + "permissions": ["storage"], "offline_enabled": true, - "options_page": "./index.html", + "options_page": "index.html", "homepage_url": "https://git.unlock-music.dev/um/web", - "browser_action": { + "action": { + "default_icon": "img/icons/favicon-32x32.png", "default_popup": "./popup.html" } -} \ No newline at end of file +}