Skip to content

Commit

Permalink
Revert <all_urls> for Chrome (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
smashedr authored May 29, 2024
1 parent a1ae887 commit c40628c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
}
},
"permissions": ["activeTab", "contextMenus", "scripting", "storage"],
"host_permissions": ["<all_urls>"],
"host_permissions": ["https://*/*", "http://*/*"],
"content_scripts": [
{
"matches": ["<all_urls>"],
"matches": ["https://*/*", "http://*/*"],
"js": ["js/tab.js"]
}
],
Expand Down
4 changes: 2 additions & 2 deletions src/js/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function enableSite(tab, color) {
*/
export async function checkPerms() {
const hasPerms = await chrome.permissions.contains({
origins: ['<all_urls>'],
origins: ['https://*/*', 'http://*/*'],
})
console.debug('checkPerms:', hasPerms)
// Firefox still uses DOM Based Background Scripts
Expand Down Expand Up @@ -87,7 +87,7 @@ export async function grantPerms(event, close = false) {
*/
export async function requestPerms() {
return await chrome.permissions.request({
origins: ['<all_urls>'],
origins: ['https://*/*', 'http://*/*'],
})
}

Expand Down

0 comments on commit c40628c

Please sign in to comment.