From adeaf824762b4933a6ae89597d6dc58aad26054a Mon Sep 17 00:00:00 2001 From: Zhe Li Date: Mon, 20 May 2024 14:48:50 +0800 Subject: [PATCH] fix edge errors --- manifests/manifest-edge.json | 8 ++------ package.json | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/manifests/manifest-edge.json b/manifests/manifest-edge.json index 10398805..eafa47af 100644 --- a/manifests/manifest-edge.json +++ b/manifests/manifest-edge.json @@ -41,16 +41,12 @@ ] }, "background": { - "scripts": [ - "dist/background.js" - ], - "persistent": true + "service_worker": "dist/background.js" }, "sandbox": { "pages": [ "view/argon.html" - ], - "content_security_policy": "sandbox allow-scripts; script-src 'self' 'unsafe-eval';" + ] }, "permissions": [ "activeTab", diff --git a/package.json b/package.json index 27ae459a..0055a0e3 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "dev:chrome": "npm run pretest && webpack --config ./webpack.watch.js", "chrome": "bash scripts/build.sh chrome", "firefox": "bash scripts/build.sh firefox", + "edge": "bash scripts/build.sh edge", "prod": "bash scripts/build.sh prod", "pretest": "bash scripts/build.sh test", "test": "node scripts/test-runner.js"