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

Added proference to disable notifications

This commit is contained in:
kkapsner 2015-05-03 13:39:27 +02:00
parent a2853455d0
commit b6ac2248f3
5 changed files with 11 additions and 1 deletions

View file

@ -144,7 +144,7 @@
case "fake":
var contentURL = new URL(worker.contentURL);
if (!ignoreList.match(contentURL)){
if (prefs.showNotifications && !ignoreList.match(contentURL)){
var url = contentURL.href;
var domain = contentURL.hostname;
var message = _("fakedReadout").replace(/\{url\}/g, url);