summaryrefslogtreecommitdiff
path: root/web/js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js')
-rw-r--r--web/js/main.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/web/js/main.js b/web/js/main.js
index 27d3a1a..278d457 100644
--- a/web/js/main.js
+++ b/web/js/main.js
@@ -13,7 +13,13 @@ class Channel {
window.addEventListener(
'WebChannelMessageToContent',
ev => {
- if (ev.detail && ev.detail.message.error) {
+ // fenix (at least up to 103) always sends a webchannel error. this
+ // we'll ignore this error entirely; if we get a legitimate No Such
+ // Channel we're not set as an account server and could not do much
+ // useful work anyway.
+ if (!ev?.detail?.message)
+ return;
+ if (ev.detail.message.error) {
for (const wait in this.waiting) {
this.waiting[wait].reject(new Error(ev.detail.message.error));
}