We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extension-port-stream/src/index.ts
Lines 14 to 15 in 6e32c73
Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
needs to be handled in this way per https://stackoverflow.com/a/56787332
chrome.runtime.sendMessage('ping', response => { if(chrome.runtime.lastError) { // handle error } else { // handle response } }
looks like firefox also puts the error on the port obj https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/Port
also looks like the error is handled more normally for some promise based apis, but likely not relevant to our usage of port https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/lastError
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
extension-port-stream/src/index.ts
Lines 14 to 15 in 6e32c73
needs to be handled in this way per https://stackoverflow.com/a/56787332
looks like firefox also puts the error on the port obj
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/Port
also looks like the error is handled more normally for some promise based apis, but likely not relevant to our usage of port
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/lastError
The text was updated successfully, but these errors were encountered: