1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-03 12:06:31 +02:00

First implementation

This commit is contained in:
kkapsner 2014-12-04 23:34:41 +01:00
parent 7e0195818b
commit caba7e33d0
4 changed files with 70 additions and 8 deletions

View file

@ -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);
},
});