aboutsummaryrefslogtreecommitdiff
path: root/vnext/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-04-17 16:46:57 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:54 +0300
commitf88307cc569f4ce179a64726885ea75401dfbcec (patch)
treeddc55f6f0a39517275a4753673373c141b5ad58b /vnext/src
parent2f9a1f07798f2ed24993034012330ff7893c9716 (diff)
Update unread counters on msg
Diffstat (limited to 'vnext/src')
-rw-r--r--vnext/src/App.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/vnext/src/App.js b/vnext/src/App.js
index e461152b..03acc9cc 100644
--- a/vnext/src/App.js
+++ b/vnext/src/App.js
@@ -54,14 +54,17 @@ export default function App() {
};
es.onerror = () => {
es.removeEventListener('read', updateStatus);
+ es.removeEventListener('msg', updateStatus);
};
es.addEventListener('read', updateStatus);
+ es.addEventListener('msg', updateStatus);
setEs(es);
}
};
return (() => {
if (es.removeEventListener) {
es.removeEventListener('read', updateStatus);
+ es.removeEventListener('msg', updateStatus);
}
});
}, [visitor.hash]);