Skip to content

Commit 9aa2d45

Browse files
committed
remove tabs permission
1 parent ebef2f3 commit 9aa2d45

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/manifest.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
},
1818
"permissions": ["storage"],
1919
"optional_permissions": [
20-
"tabs",
2120
"https://startpage.com/*",
2221
"https://www.startpage.com/*",
2322
"https://www.youtube.com/*",

src/options_page.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ const setSearchEnginePermission_ = async (checkbox) => {
7070
if (checkbox.checked) {
7171
checkbox.checked = false;
7272
// eslint-disable-next-line no-undef
73-
const granted = await browser.permissions.request(
74-
{permissions: ['tabs'], origins: urls});
73+
const granted = await browser.permissions.request({origins: urls});
7574
checkbox.checked = granted;
7675
} else {
7776
// eslint-disable-next-line no-undef

0 commit comments

Comments
 (0)