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:
parent
f73a4ee619
commit
b0e1e69ec9
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user