1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +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

@ -36,6 +36,9 @@
const apiMap = new Map();
scope.show = function showNotification(tabId, url, api){
if (settings.ignoredAPIs[api]){
return;
}
logging.notice("Show notification for tab", tabId);
if (
settings.get("showNotifications", url) &&