From 23098ce0b576b341e7c063913dbbb8e78f170e98 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 27 May 2016 20:30:38 +0200 Subject: ws:// vs. wss:// for clock.js 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); -- cgit v0.10.2