mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-10-31 18:38:45 +01:00
Messages were not passed to tabs.
This commit is contained in:
parent
2f4fca10ab
commit
5ca27505eb
@ -42,7 +42,11 @@
|
||||
}
|
||||
}
|
||||
notice("pass the message to the tabs");
|
||||
browser.tabs.sendMessage(data);
|
||||
browser.tabs.query({}).then(function(tabs){
|
||||
tabs.forEach(function(tab){
|
||||
browser.tabs.sendMessage(tab.id, data);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
message("register port listener");
|
||||
|
Loading…
Reference in New Issue
Block a user