diff --git a/lib/frame.js b/lib/frame.js index dfab1a9..d11c656 100644 --- a/lib/frame.js +++ b/lib/frame.js @@ -98,6 +98,7 @@ {subject: window}, {check, checkStack, ask: askWrapper, notify, prefs} ); + log("prepare to intercept (i)frames."); [window.HTMLIFrameElement, window.HTMLFrameElement].forEach(function(constructor){ var oldContentWindowGetter = constructor.prototype.__lookupGetter__("contentWindow"); @@ -142,13 +143,16 @@ enabled = false; } if (data.hasOwnProperty("canvasBlocker-sendNotifications") && data["canvasBlocker-sendNotifications"] === tabId){ + log("sending notifications:", notifications); browser.runtime.sendMessage({ sender: tabId, "canvasBlocker-notifications": notifications }); + log("notifications sent"); } }); + log("load settings"); browser.storage.local.get().then(function(data){ Object.keys(data).forEach(function(key){ log("loaded setting:", key, ":", data[key]); @@ -160,6 +164,7 @@ browser.storage.onChanged.addListener(function(change, area){ if (area === "local"){ Object.keys(change).forEach(function(key){ + log("setting changed:", key, ":", change[key].newValue); settings[key] = change[key].newValue; }); }