mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 12:06:31 +02:00
First implementation
This commit is contained in:
parent
7e0195818b
commit
caba7e33d0
4 changed files with 70 additions and 8 deletions
|
@ -153,8 +153,13 @@
|
|||
this.emit(blocking, true, prefs.askOnlyOnce);
|
||||
}
|
||||
});
|
||||
worker.port.emit("setTranslation", "askForPermission", _("askForPermission"));
|
||||
worker.port.emit("setTranslation", "askForReadoutPermission", _("askForReadoutPermission"));
|
||||
["", "Readout"].forEach(function(type){
|
||||
["", "Visible", "Invisible"].forEach(function(visibility){
|
||||
var text = "askFor" + visibility + type + "Permission";
|
||||
worker.port.emit("setTranslation", text, _(text));
|
||||
});
|
||||
});
|
||||
|
||||
checkWorker(worker);
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue