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}

View File

@ -7,6 +7,7 @@ Version 0.3.7:
fixes:
- fake at input was broken
- did not work at all in Firefox 45.7.0 (ESR)
Version 0.3.6:
changes: