diff options
Diffstat (limited to 'src/lib/Messages.js')
-rw-r--r-- | src/lib/Messages.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Messages.js b/src/lib/Messages.js index 0a47c42..f33b621 100644 --- a/src/lib/Messages.js +++ b/src/lib/Messages.js @@ -65,6 +65,10 @@ return await browser.tabs.sendMessage(recipientInfo.tabId, args, opts); } return await browser.runtime.sendMessage(args); + }, + isMissingEndpoint(error) { + return error && error.message === + "Could not esablish connection. Receiving end does not exist."; } } } |