aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-11 00:03:22 +0300
committerGravatar Vitaly Takmazov2018-10-11 00:03:22 +0300
commit6a41285e43e6b78433edffa3f9a2106cda6133c0 (patch)
tree86d7975ecd203ae5d2f6a5afb575a7cd0351fded /juick-server/src
parent31aeb6e69b5e7c329af9a0838caf848fd5300aa9 (diff)
fix SSE in Safari
Diffstat (limited to 'juick-server/src')
-rw-r--r--juick-server/src/main/assets/scripts.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/assets/scripts.js b/juick-server/src/main/assets/scripts.js
index 995a396a..25450d30 100644
--- a/juick-server/src/main/assets/scripts.js
+++ b/juick-server/src/main/assets/scripts.js
@@ -125,7 +125,7 @@ function i18n(key, lang = undefined) {
var es, pageTitle;
function initES() {
- let url = new URL('/api/events', window.location.href);
+ let url = '/api/events';
let hash = document.getElementById('body').getAttribute('data-hash');
if (hash) {
url += '?hash=' + hash;