1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-03-11 18:52:42 +01:00

Do not pass messages to internal tabs

E.g. about:addons
Otherwise this causes an error.
This commit is contained in:
kkapsner 2018-09-13 18:40:18 +02:00
parent f73a4ee619
commit b0e1e69ec9

View File

@ -42,11 +42,7 @@
} }
} }
notice("pass the message to the tabs"); notice("pass the message to the tabs");
browser.tabs.query({}).then(function(tabs){ browser.tabs.sendMessage(data);
tabs.forEach(function(tab){
browser.tabs.sendMessage(tab.id, data);
});
});
}); });
message("register port listener"); message("register port listener");