diff options
author | Vitaly Takmazov | 2018-11-07 14:39:38 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-11-07 14:39:38 +0300 |
commit | 185330d049addf179006709a86bc0a0b5c7803b1 (patch) | |
tree | d82cc5a9f8ac12c7037926855075096a6cfbd3a7 /juick-server/src | |
parent | 915e31ad02e828fea35c58db3581d58b9ca0caf2 (diff) |
www: do not confuse IE with EventSource
Diffstat (limited to 'juick-server/src')
-rw-r--r-- | juick-server/src/main/assets/scripts.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/juick-server/src/main/assets/scripts.js b/juick-server/src/main/assets/scripts.js index cc91a6cf..9a5045d6 100644 --- a/juick-server/src/main/assets/scripts.js +++ b/juick-server/src/main/assets/scripts.js @@ -125,6 +125,7 @@ function i18n(key, lang = undefined) { var es, pageTitle; function initES() { + if (!("EventSource" in window)) return; let url = '/api/events'; let hash = document.getElementById('body').getAttribute('data-hash'); if (hash) { |