This abstracts away the logic of waiting for a particularly-named chrome.runtime.onConnect event.
This helper will be useful for the mv3 code since all communication between extension's pages (Service Worker, Browser Action, popup windows, Offscreen Document) will need to be switched to message ports.
This abstracts away the logic of waiting for a particularly-named chrome.runtime.onConnect event.
This helper will be useful for the mv3 code since all communication between extension's pages (Service Worker, Browser Action, popup windows, Offscreen Document) will need to be switched to message ports.