1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-05-29 09:28:06 +02: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");
browser.tabs.query({}).then(function(tabs){
tabs.forEach(function(tab){
browser.tabs.sendMessage(tab.id, data);
});
});
browser.tabs.sendMessage(data);
});
message("register port listener");