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