aboutsummaryrefslogtreecommitdiff
path: root/vnext/src
diff options
context:
space:
mode:
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 d4e3acfe..a74934ab 100644
--- a/vnext/src/App.js
+++ b/vnext/src/App.js
@@ -38,6 +38,9 @@ export default class App extends React.Component {
}
initES = () => {
+ if (!('EventSource' in window)) {
+ return;
+ }
const params = { hash: this.state.visitor.hash };
let url = new URL(`https://api.juick.com/events?${qs.stringify(params)}`);
this.es = new EventSource(url);