1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-06-23 03:52:45 +02:00

Removed updateContentScripts

It does not to seem necessary any more.
This commit is contained in:
kkapsner 2017-11-08 17:47:09 +01:00
parent 3cb1974b18
commit e539a893b4

View File

@ -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");