wOxxOm
unread,Feb 20, 2022, 8:12:39 AM2/20/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium Extensions, naie...@gmail.com, wOxxOm, PhistucK, Chromium Extensions
Well, don't take my words for gospel, investigate it first :-) There should be many examples on how to check if the service worker is running and how to communicate with it. In short, it's navigator.serviceWorker.controller to check if the service worker is running; to start it you would use await navigator.serviceWorker.ready; to post a message use postMessage on controller and self.onmessage inside the worker.
connectNative behavior was changed several days ago, in Chrome 100, and usually such things don't get back-merged into current versions of Chrome.