diff options
author | Vitaly Takmazov | 2019-04-17 16:46:57 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:54 +0300 |
commit | f88307cc569f4ce179a64726885ea75401dfbcec (patch) | |
tree | ddc55f6f0a39517275a4753673373c141b5ad58b /vnext/src | |
parent | 2f9a1f07798f2ed24993034012330ff7893c9716 (diff) |
Update unread counters on msg
Diffstat (limited to 'vnext/src')
-rw-r--r-- | vnext/src/App.js | 3 |
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]); |