Skip to content

Commit c4f8ddc

Browse files
authored
⚰️ remove Chrome-specific permissions from the Firefox manifest (#719)
1 parent 3161c3f commit c4f8ddc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

build/pack.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ firefoxManifest.commands = {
8181
_execute_browser_action: {},
8282
};
8383

84+
// 避免将 Chrome 特有权限添加到 Firefox 的 manifest
85+
firefoxManifest.permissions = firefoxManifest.permissions.filter(
86+
(permission) => permission !== "background"
87+
);
88+
8489
const chrome = new JSZip();
8590
const firefox = new JSZip();
8691

0 commit comments

Comments
 (0)