mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Simplified require and further linting.
This commit is contained in:
parent
01c1145e28
commit
dcb878392e
15 changed files with 86 additions and 78 deletions
|
@ -34,10 +34,9 @@
|
|||
return true;
|
||||
}
|
||||
}
|
||||
const _ = require("sdk/l10n").get;
|
||||
function askWrapper(data){
|
||||
return ask(data, {
|
||||
_,
|
||||
_: browser.i18n.getMessage,
|
||||
prefs
|
||||
});
|
||||
}
|
||||
|
@ -159,7 +158,10 @@
|
|||
if (data["canvasBlocker-unload"]){
|
||||
enabled = false;
|
||||
}
|
||||
if (data.hasOwnProperty("canvasBlocker-sendNotifications") && data["canvasBlocker-sendNotifications"] === tabId){
|
||||
if (
|
||||
data.hasOwnProperty("canvasBlocker-sendNotifications") &&
|
||||
data["canvasBlocker-sendNotifications"] === tabId
|
||||
){
|
||||
notice("sending notifications:", notifications);
|
||||
browser.runtime.sendMessage({
|
||||
sender: tabId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue