1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

Added logging to dynamic content script.

This commit is contained in:
kkapsner 2017-12-18 23:19:28 +01:00
parent 140349b401
commit 96b5291459

View File

@ -84,7 +84,6 @@
});
}
});
if (browser.contentScripts){
let unregister = function(){};
let lastRegistering;
@ -105,7 +104,13 @@
js: [{
code: `(function(){
const settings = require("./settings");
settings.init(${JSON.stringify(data)});
const logging = require("./logging");
if (settings.init(${JSON.stringify(data)})){
logging.message("Initiaized settings by dynamic content script.");
}
else {
logging.error("Dynamic content script was too late to provide settings.");
}
}())`
}]
}).then(function(api){