Skip to content

Commit

Permalink
Improve host permission differentiation logic
Browse files Browse the repository at this point in the history
If you requested an extended permission of a domain already in the manifest, it would be considered a whole new "domain".

This was due to fregante/webext-permissions#1
  • Loading branch information
fregante committed Dec 19, 2020
1 parent dcc61fe commit f0e86e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default class OptionsSyncPerDomain<TOptions extends Options> {
const instances = new Map<string, OptionsSync<TOptions>>();
instances.set('default', this.getOptionsForOrigin());

const {origins} = await getAdditionalPermissions();
const {origins} = await getAdditionalPermissions({strictOrigins: false});
for (const origin of origins) {
instances.set(
parseHost(origin),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"dependencies": {
"mem": "^6.1.0",
"webext-additional-permissions": "^1.0.0",
"webext-additional-permissions": "^1.1.0",
"webext-detect-page": "^2.0.5",
"webext-options-sync": "^2.0.0",
"webext-patterns": "^0.9.0"
Expand Down

0 comments on commit f0e86e4

Please sign in to comment.