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

Revert iframe protection upon window unload

Fixes #519
This commit is contained in:
kkapsner 2021-01-03 17:32:57 +01:00
parent f4d09e43ac
commit fcbc622cef
2 changed files with 4 additions and 1 deletions

View file

@ -41,6 +41,9 @@
return false;
}
}
window.addEventListener("unload", function(){
extension.revertProperties(window, "iframeProtection");
});
return changeProperty;
}