1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02: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");
extension.message.on(function(data){
if (data["canvasBlocker-unload"]){
extension.revertProperties();
extension.revertProperties(window);
for (let frameIndex = 0; frameIndex < window.length; frameIndex += 1){
extension.revertProperties(window[frameIndex]);
}
enabled = false;
}
if (