summaryrefslogtreecommitdiff
path: root/src/content/content.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/content.js')
-rw-r--r--src/content/content.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/content.js b/src/content/content.js
index eabf7c3..74e1d95 100644
--- a/src/content/content.js
+++ b/src/content/content.js
@@ -62,7 +62,7 @@ var notifyPage = async () => {
return true;
} catch (e) {
debug(e);
- if (/Receiving end does not exist/.test(e.message)) {
+ if (Messages.isMissingEndpoint(e)) {
window.setTimeout(notifyPage, 2000);
}
}