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

Commit 4317405

Browse files
committed
allow using ports other than :80
Autoreload didn't work when serving from ports other than 80 - this fixes it
1 parent 56955fc commit 4317405

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/styleguide/js/synclisteners.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*!
32
* Sync Listeners, v0.1
43
*
@@ -17,7 +16,7 @@ var wsn;
1716
var wsnConnected = false;
1817
var wsc;
1918
var wscConnected = false;
20-
var host = (window.location.host !== "") ? window.location.host : "127.0.0.1";
19+
var host = (window.location.hostname !== "") ? window.location.hostname : "127.0.0.1";
2120

2221
// handle page updates from one browser to another
2322
function connectPageFollowSync() {

0 commit comments

Comments
 (0)