mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Ping back after the port opening to the background script now also returns the settings and the persistentRnd data.
This commit is contained in:
parent
e5e38e148e
commit
a4a92fc2f9
2 changed files with 27 additions and 2 deletions
|
@ -82,7 +82,13 @@
|
|||
browser.runtime.onConnect.addListener(function(port){
|
||||
notice("got port", port);
|
||||
verbose("send back the tab id", port.sender.tab.id);
|
||||
port.postMessage({tabId: port.sender.tab.id});
|
||||
verbose("send back the persistend random seeds", persistentRnd);
|
||||
verbose("send back the settings", settings);
|
||||
port.postMessage({
|
||||
tabId: port.sender.tab.id,
|
||||
persistentRnd: persistentRnd,
|
||||
settings: settings
|
||||
});
|
||||
var url = new URL(port.sender.url);
|
||||
port.onMessage.addListener(function(data){
|
||||
browser.storage.local.get("showNotifications").then(function(data){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue