Skip to content

Commit

Permalink
Fix offscreen mv2 permission (#8379)
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamlangford authored May 1, 2024
1 parent 8e5d11f commit afb4f9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions scripts/__snapshots__/manifest.test.js.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/manifest.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function updateManifestToV3(manifestV2) {

// Extract host permissions
const { permissions, origins } = normalizeManifestPermissions(manifest);
manifest.permissions = [...permissions, "scripting"];
manifest.permissions = [...permissions, "scripting", "offscreen"];
manifest.host_permissions = origins;
// Sidebar Panel open() is only available in Chrome 116+
// https://developer.chrome.com/docs/extensions/reference/api/sidePanel#method-open
Expand Down
3 changes: 1 addition & 2 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@
"webNavigation",
"contextMenus",
"<all_urls>",
"alarms",
"offscreen"
"alarms"
],
"devtools_page": "devtools.html",
"externally_connectable": {
Expand Down

0 comments on commit afb4f9f

Please sign in to comment.