summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/js/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/utils.js b/www/js/utils.js
index ea4f42b..cc0b657 100644
--- a/www/js/utils.js
+++ b/www/js/utils.js
@@ -163,7 +163,7 @@ function Clock(draw_callback) {
}
this.start = function() {
- this.sock = new WebSocket("wss://import.helsinki.at/ntp");
+ this.sock = new WebSocket("wss://" + window.location.host + "/ntp");
this.sock.onmessage = this.ntp_update.bind(this);
this.sock.onopen = this.sock_onopen.bind(this);
this.interval_redraw = setInterval(this.redraw.bind(this), 200);