1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-03 12:06:31 +02:00

Use correct tab in browserAction (private browsing)

Fixes #649
This commit is contained in:
kkapsner 2023-04-07 09:22:03 +02:00
parent 2ac1ec277d
commit e0e6926a74
3 changed files with 6 additions and 1 deletions

View file

@ -13,7 +13,7 @@
logging.message("Opened browser action");
browser.tabs.query({active: true}).then(async function([currentTab]){
browser.tabs.query({active: true, currentWindow: true}).then(async function([currentTab]){
function isWhitelisted(url){
if (!(url instanceof URL)){
url = new URL(url);