aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]);