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:
parent
cd8c7bd71c
commit
51445b36e0
5 changed files with 89 additions and 10 deletions
|
@ -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});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue