Skip to content

Commit

Permalink
Don't crash if WebExt has no content_scripts (#9341)
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic authored Nov 4, 2023
1 parent 406650e commit eeb3ba3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ async function collectDependencies(
program.permissions.push('scripting');
}
const hostPerms = [
...new Set(program.content_scripts.flatMap(sc => sc.matches)),
...new Set(program.content_scripts?.flatMap(sc => sc.matches)),
];
if (isMV2) program.permissions = program.permissions.concat(hostPerms);
else {
Expand Down

0 comments on commit eeb3ba3

Please sign in to comment.