1
0
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:
kkapsner 2018-09-23 12:33:23 +02:00
parent 2f4fca10ab
commit 5ca27505eb

View File

@ -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");