diff --git a/lib/main.js b/lib/main.js index c334b75..5e3f6e5 100644 --- a/lib/main.js +++ b/lib/main.js @@ -16,21 +16,6 @@ settings.onloaded(function(){ notice("everything loaded"); - function updateContentScripts(){ - message("update content scripts"); - notice("build settings blob"); - var settingsBlob = new Blob( - [ - "var settings = " + JSON.stringify(settings) + ";", - "var persistentRnd = " + JSON.stringify(persistentRnd) + ";" - ], - { - type: "text/javascript" - } - ); - warning("TODO: register content scripts -> have to wait for the API to be released"); - } - updateContentScripts(); persistentRndStorage.init(); message("register non port message listener"); @@ -45,14 +30,12 @@ if (keys.length === 1){ return; } - updateContentScripts(); } if (data["canvasBlocker-clear-domain-rnd"]){ persistentRndStorage.clear(); if (keys.length === 1){ return; } - updateContentScripts(); } notice("pass the message to the tabs"); browser.tabs.query({}).then(function(tabs){ @@ -87,7 +70,6 @@ message("register storage change event listener"); - settings.on("any", updateContentScripts); settings.on("showNotifications", function({newValue}){ if (!newValue){ message("notifications were disabled -> hide all page actions");