mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Safari: ignore non-tab activation targets
This commit is contained in:
parent
0a604f8cc7
commit
d4e85d1d70
1 changed files with 4 additions and 1 deletions
|
|
@ -426,7 +426,10 @@
|
||||||
}
|
}
|
||||||
vAPI.toolbarItem = event.target;
|
vAPI.toolbarItem = event.target;
|
||||||
}, true);
|
}, true);
|
||||||
safari.application.addEventListener("activate", function() {
|
safari.application.addEventListener("activate", function(event) {
|
||||||
|
if(!(event.target instanceof SafariBrowserTab)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
vAPI.updateIcon(vAPI.toolbarItem);
|
vAPI.updateIcon(vAPI.toolbarItem);
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue