aboutsummaryrefslogtreecommitdiff
path: root/vnext/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-11 15:56:03 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit5d01de14ee14c5f86d8f2007c68963cc1f1759ea (patch)
tree5194c18bbc18f0833604224f4bd704dba14b46c4 /vnext/src
parent9f1dd954d7023c6a121659d1299fb83fc117a66d (diff)
IE compatibility
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);