mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 12:06:31 +02:00
parent
66536113e8
commit
b968e3e7a0
2 changed files with 4 additions and 3 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue