Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
allow using ports other than :80
Browse files Browse the repository at this point in the history
Autoreload didn't work when serving from ports other than 80 - this fixes it
  • Loading branch information
levito committed Mar 24, 2014
1 parent 56955fc commit 4317405
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/styleguide/js/synclisteners.js
@@ -1,4 +1,3 @@

/*!
* Sync Listeners, v0.1
*
Expand All @@ -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() {
Expand Down

0 comments on commit 4317405

Please sign in to comment.