1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 04:40:20 +01: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);

View File

@ -10,6 +10,7 @@ Version 1.9:
fixes:
- errors in URL regular expressions broke CB
- use correct tab in browserAction (private browsing)
known issues:
- if a data URL is blocked the page action button does not appear

View File

@ -241,6 +241,10 @@
{
"version": "1.9Alpha20230325",
"update_link": "https://canvasblocker.kkapsner.de/versions/canvasblocker_beta-1.9Alpha20230325.xpi"
},
{
"version": "1.9Alpha20230407",
"update_link": "https://canvasblocker.kkapsner.de/versions/canvasblocker_beta-1.9Alpha20230407.xpi"
}
]
}