::runtime/on-connect not always works
Erveftick opened this issue · 0 comments
Erveftick commented
In my Google extension, a reagent is implemented in the popup page, with which I click on buttons and send messages to the background page.
One of the messages tells the background page to create a new window, the window is created but in the function "process-chrome-event" event handler
::runtime/on-connect
does not always occur, and I don't know why.
A similar problem with page refresh: message has taken, the page is reloaded, but the client does not establish a connection, due to which the scripts on the content-script are not launched.
Is there any way I can fix this or re-establish the connection?