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

Added option to ignore APIs

As mentioned in #233
This commit is contained in:
kkapsner 2018-08-24 16:47:27 +02:00
parent 5ced858173
commit da14aaff51
7 changed files with 52 additions and 0 deletions

View file

@ -195,6 +195,9 @@
else {
for (var delta = 0; delta < 20 && i + delta < length; delta += 1){
let notification = notifications[i + delta];
if (settings.ignoredAPIs[notification.api]){
continue;
}
verbose(notification);
notification.url = new URL(notification.url);
domainNotification(