summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/js/clock.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/clock.js b/www/js/clock.js
index a2b0628..d62acff 100644
--- a/www/js/clock.js
+++ b/www/js/clock.js
@@ -84,7 +84,7 @@ function Clock() {
}
this.connect = function() {
- this.sock = new WebSocket('ws://' + window.location.host + '/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.sock.onclose = this.sock_onclose.bind(this);