Skip to content

Commit

Permalink
Make contextual identities permission optional #53
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Feb 24, 2024
1 parent f5c00b0 commit c55c092
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion common/Context.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ export class Context {
this.descendantTabs :
[this.tab, ...this.descendantTabs];

if (this.withContainer) {
if (this.withContainer &&
browser.contextualIdentities) {
const cookieStoreIds = [...new Set(this.$tabsToCopy.map(tab => tab.cookieStoreId))];
this.$containerNameById = new Map();
await Promise.all(
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"permissions": [
"activeTab",
"clipboardWrite",
"contextualIdentities",
"cookies",
"menus",
"notifications",
"storage",
"tabs"
],
"optional_permissions": [
"contextualIdentities",
"<all_urls>"
],
"icons": {
Expand Down

0 comments on commit c55c092

Please sign in to comment.