diff --git a/lib/reload-client.js b/lib/reload-client.js index f094266..348c8c6 100644 --- a/lib/reload-client.js +++ b/lib/reload-client.js @@ -1,6 +1,10 @@ (function refresh () { var verboseLogging = false - var socketUrl = window.location.origin.replace() // This is dynamically populated by the reload.js file before it is sent to the browser + var socketUrl = window.location.origin + if (!window.location.origin.match(/:[0-9]+/)) { + socketUrl = window.location.origin + ':80' + } + socketUrl = socketUrl.replace() // This is dynamically populated by the reload.js file before it is sent to the browser var socket if (verboseLogging) {