From 6a41285e43e6b78433edffa3f9a2106cda6133c0 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 11 Oct 2018 00:03:22 +0300 Subject: fix SSE in Safari --- juick-server/src/main/assets/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-server/src') diff --git a/juick-server/src/main/assets/scripts.js b/juick-server/src/main/assets/scripts.js index 995a396af..25450d308 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; -- cgit v1.2.3