mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-11-01 02:48:44 +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");
|
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");
|
message("register port listener");
|
||||||
|
Loading…
Reference in New Issue
Block a user