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

Firefox 45.7.0 (ESR) complained about function in block.

Fixes #105.
This commit is contained in:
kkapsner 2017-02-10 17:29:38 +01:00
parent 66536113e8
commit b968e3e7a0
2 changed files with 4 additions and 3 deletions

View file

@ -48,11 +48,11 @@
frames.forEvery(function(frame){
frame.addEventListener("DOMWindowCreated", function(ev){
function notify(data){
frame.port.emit("canvasBlocker-notify", data);
}
if (enabled){
var subject = ev.target.defaultView;
function notify(data){
frame.port.emit("canvasBlocker-notify", data);
}
intercept(
{subject},
{check, checkStack, ask: askWrapper, notify, prefs}