Skip to content

Commit b45b247

Browse files
committed
Remove more MV3-only entries from MV2 manifest.
1 parent de9e41a commit b45b247

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

manifest.js

+5
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ if (MANIFEST_VER.includes(3)) {
9292
delete json.action;
9393
for (const p of [
9494
"debugger",
95+
"declarativeNetRequest",
96+
"declarativeNetRequestFeedback",
9597
]) {
9698
permissions.delete(p);
9799
}
@@ -115,6 +117,9 @@ if (MANIFEST_VER.includes(3)) {
115117

116118
// remove all the MAIN world content script
117119
json.content_scripts = json.content_scripts.filter(cs => cs.world != "MAIN");
120+
121+
// match_origin_as_fallback is MV3 only
122+
json.content_scripts.forEach(cs => delete cs.match_origin_as_fallback);
118123
}
119124

120125
// remove developer-only stuff

0 commit comments

Comments
 (0)