mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 12:50:36 +01: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…
x
Reference in New Issue
Block a user