From 3ce19679638bd1e5aa5548bbe32f835a1e44e151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Brekke=20Skj=C3=B8tskift?= Date: Thu, 18 Sep 2014 10:11:12 +0200 Subject: [PATCH] Changed host to hostname to avoid illegal url if a port is used --- public/listeners/synclisteners.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/listeners/synclisteners.js b/public/listeners/synclisteners.js index a76ee4921..e0eca083c 100644 --- a/public/listeners/synclisteners.js +++ b/public/listeners/synclisteners.js @@ -18,7 +18,7 @@ var wsnConnected = false; var wsc; var wscConnected = false; var dataPrevious = 0; -var host = (window.location.host != "") ? window.location.host : "127.0.0.1"; +var host = (window.location.host !== '') ? window.location.hostname : '127.0.0.1'; // handle page updates from one browser to another function connectNavSync() {