1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

Added whitelist scope question

This commit is contained in:
kkapsner 2019-04-30 23:42:21 +02:00
parent cd8c7bd71c
commit 51445b36e0
5 changed files with 89 additions and 10 deletions

View file

@ -76,7 +76,13 @@
if (settings.storeNotificationData){
notifications.push(data);
}
notificationCounter[data.messageId] = (notificationCounter[data.messageId] || 0) + 1;
if (!notificationCounter[data.messageId]){
notificationCounter[data.messageId] = {
count: 0,
api: data.api
};
}
notificationCounter[data.messageId].count += 1;
if (!sentAPIs[data.api]){
sentAPIs[data.api] = true;
port.postMessage({"canvasBlocker-notify": data});