Skip to content

Commit

Permalink
Revert scripting permmission
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitrino committed Jul 25, 2024
1 parent 02ce124 commit 7f1f9a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const manifest = {
css: ["assets/css/contentStyle<KEY>.chunk.css"],
},
],
permissions: ["tabs", "storage", "tts", "activeTab"],
permissions: ["scripting", "tabs", "storage", "tts", "activeTab"],
optional_host_permissions: ["*://*/*"],
optional_permissions: [],
host_permissions: ["https://translate.google.com/*", "http://localhost:8765/*"],
Expand Down
2 changes: 1 addition & 1 deletion src/pages/popup/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Popup = () => {
const handleRequestPermissions = async () => {
const tab = await getTab();
const isGranted = await chrome.permissions.request({
permissions: ["tabs", "storage", "tts", "activeTab"],
permissions: ["scripting", "tabs", "storage", "tts", "activeTab"],
origins: [tab.url],
});
if (isGranted) {
Expand Down

0 comments on commit 7f1f9a7

Please sign in to comment.