mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 03:56:26 +02:00
Merge from master
This commit is contained in:
commit
ab8a88ef66
6 changed files with 98 additions and 7 deletions
16
lib/main.js
16
lib/main.js
|
@ -73,6 +73,16 @@
|
|||
updateBlackList();
|
||||
});
|
||||
|
||||
// preferences for injected file
|
||||
var preferencesForInjected = ["showCallingFile", "showCompleteCallingStack"];
|
||||
preferencesForInjected.forEach(function(name){
|
||||
preferences.on(name, function(){
|
||||
workers.forEach(function(worker){
|
||||
worker.port.emit("set", name, prefs[name]);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function checkURL(url){
|
||||
var url = new URL(url);
|
||||
var mode = "block";
|
||||
|
@ -159,6 +169,12 @@
|
|||
worker.port.emit("setTranslation", text, _(text));
|
||||
});
|
||||
});
|
||||
worker.port.emit("setTranslation", "sourceOutput", _("sourceOutput"));
|
||||
worker.port.emit("setTranslation", "stackEntryOutput", _("stackEntryOutput"));
|
||||
|
||||
preferencesForInjected.forEach(function(name){
|
||||
worker.port.emit("set", name, prefs[name]);
|
||||
});
|
||||
|
||||
checkWorker(worker);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue