Skip to content

Commit 1f002f0

Browse files
committed
🐛 修复ci打包删除掉了background的可选权限问题
1 parent 6165bf4 commit 1f002f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/pack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const firefoxManifest = { ...manifest, background: { ...manifest.background } };
6767
const chromeManifest = { ...manifest, background: { ...manifest.background } };
6868

6969
delete chromeManifest.content_security_policy;
70-
delete chromeManifest.optional_permissions;
70+
chromeManifest.optional_permissions = chromeManifest.optional_permissions.filter((val) => val !== "userScripts");
7171
delete chromeManifest.background.scripts;
7272

7373
delete firefoxManifest.background.service_worker;

0 commit comments

Comments
 (0)