1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-10-31 18:38:45 +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 = [];
function notify(data){
notifications.push(data);
port.postMessage({"canvasBlocker-notify": data});
if (!settings.ignoredAPIs[data.api]){
notifications.push(data);
port.postMessage({"canvasBlocker-notify": data});
}
}
function prefs(...args){