From 5d01de14ee14c5f86d8f2007c68963cc1f1759ea Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 11 Nov 2018 15:56:03 +0300 Subject: IE compatibility --- vnext/src/App.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vnext/src') 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); -- cgit v1.2.3