diff options
author | hackademix | 2019-10-23 17:20:10 +0200 |
---|---|---|
committer | hackademix | 2019-10-25 23:19:48 +0100 |
commit | 810c607e6b4b050147c49a3affe2d28ac4f8fa0f (patch) | |
tree | 018367679d7fd20d1ccf4c2709e4838aada187ea /src/content/content.js | |
parent | 51e115d3bcd2ad683f264e7d9c97347e0afac14e (diff) | |
download | noscript-810c607e6b4b050147c49a3affe2d28ac4f8fa0f.tar.gz noscript-810c607e6b4b050147c49a3affe2d28ac4f8fa0f.tar.xz noscript-810c607e6b4b050147c49a3affe2d28ac4f8fa0f.zip |
Consolidated missing endpoint error detection in Messages.
Diffstat (limited to 'src/content/content.js')
-rw-r--r-- | src/content/content.js | 2 |
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); } } |