mellowtel-inc / mellowtel-js

With Mellowtel, your users can share a fraction of their unused internet by using a transparent opt-in/out mechanism. Trusted partners access the internet through this network, and you get paid for it.
https://www.mellowtel.com/
GNU Lesser General Public License v3.0
49 stars 5 forks source link

Error in service worker: Could not establish connection. Receiving end does not exist. #6

Closed yacine-bens closed 6 months ago

yacine-bens commented 6 months ago

Error message: Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.

It happens each time a link is visited or the page is refreshed. Just opening a new tab does not trigger it. Sometimes this one appears too: Unchecked runtime.lastError: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received

yacine-bens commented 6 months ago

Update: it is actually happening only when a new tab "blank" or "chrome://" tab is open.

yacine-bens commented 6 months ago

It's coming from shared-memory.ts. I fixed it locally. I'll create a PR.

mellowtel commented 6 months ago

Thanks for looking into this @yacine-bens! Makes a lot of sense, going to merge now