1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

Fix message canvasBlocker-unload

For #522
This commit is contained in:
kkapsner 2021-01-26 13:34:51 +01:00
parent 1b04da40c2
commit e48710eee9
2 changed files with 5 additions and 2 deletions

View File

@ -205,7 +205,10 @@
logging.message("register listener for messages from background script"); logging.message("register listener for messages from background script");
extension.message.on(function(data){ extension.message.on(function(data){
if (data["canvasBlocker-unload"]){ if (data["canvasBlocker-unload"]){
extension.revertProperties(); extension.revertProperties(window);
for (let frameIndex = 0; frameIndex < window.length; frameIndex += 1){
extension.revertProperties(window[frameIndex]);
}
enabled = false; enabled = false;
} }
if ( if (

View File

@ -6,7 +6,7 @@ Version 1.6:
- -
fixes: fixes:
- - fix message canvasBlocker-unload
known issues: known issues:
- if a data URL is blocked the page action button does not appear - if a data URL is blocked the page action button does not appear