aboutsummaryrefslogtreecommitdiff
path: root/juick-server
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server')
-rw-r--r--juick-server/src/main/assets/scripts.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/juick-server/src/main/assets/scripts.js b/juick-server/src/main/assets/scripts.js
index 9a5045d6..9ee0639e 100644
--- a/juick-server/src/main/assets/scripts.js
+++ b/juick-server/src/main/assets/scripts.js
@@ -125,7 +125,9 @@ function i18n(key, lang = undefined) {
var es, pageTitle;
function initES() {
- if (!("EventSource" in window)) return;
+ if (!('EventSource' in window)) {
+ return;
+ }
let url = '/api/events';
let hash = document.getElementById('body').getAttribute('data-hash');
if (hash) {