Skip to content

Commit

Permalink
remove tabs permission
Browse files Browse the repository at this point in the history
  • Loading branch information
infokiller committed Jun 25, 2020
1 parent ebef2f3 commit 9aa2d45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
},
"permissions": ["storage"],
"optional_permissions": [
"tabs",
"https://startpage.com/*",
"https://www.startpage.com/*",
"https://www.youtube.com/*",
Expand Down
3 changes: 1 addition & 2 deletions src/options_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ const setSearchEnginePermission_ = async (checkbox) => {
if (checkbox.checked) {
checkbox.checked = false;
// eslint-disable-next-line no-undef
const granted = await browser.permissions.request(
{permissions: ['tabs'], origins: urls});
const granted = await browser.permissions.request({origins: urls});
checkbox.checked = granted;
} else {
// eslint-disable-next-line no-undef
Expand Down

0 comments on commit 9aa2d45

Please sign in to comment.