From 431740545c5c05674059fa25a89800711a041ab3 Mon Sep 17 00:00:00 2001 From: Veit Lehmann Date: Mon, 24 Mar 2014 04:55:48 +0100 Subject: [PATCH] allow using ports other than :80 Autoreload didn't work when serving from ports other than 80 - this fixes it --- core/styleguide/js/synclisteners.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/styleguide/js/synclisteners.js b/core/styleguide/js/synclisteners.js index 56f1092b6..d8043f04d 100644 --- a/core/styleguide/js/synclisteners.js +++ b/core/styleguide/js/synclisteners.js @@ -1,4 +1,3 @@ - /*! * Sync Listeners, v0.1 * @@ -17,7 +16,7 @@ var wsn; var wsnConnected = false; var wsc; var wscConnected = false; -var host = (window.location.host !== "") ? window.location.host : "127.0.0.1"; +var host = (window.location.hostname !== "") ? window.location.hostname : "127.0.0.1"; // handle page updates from one browser to another function connectPageFollowSync() {