1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-01-03 10:31:54 +01:00

Don't store ignored notifications.

For #236
This commit is contained in:
kkapsner 2018-09-09 00:15:21 +02:00
parent 255c8e6bbf
commit 4c2fea8a90

View File

@ -69,8 +69,10 @@
}); });
var notifications = []; var notifications = [];
function notify(data){ function notify(data){
notifications.push(data); if (!settings.ignoredAPIs[data.api]){
port.postMessage({"canvasBlocker-notify": data}); notifications.push(data);
port.postMessage({"canvasBlocker-notify": data});
}
} }
function prefs(...args){ function prefs(...args){