Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
milankinen committed Mar 12, 2017
2 parents b8fd069 + 55ad7fd commit 3eedbcb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/reloading.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ function loader(mappings, entryPoints, options) {
return;
}
var protocol = window.location.protocol === "https:" ? "wss" : "ws";
var url = protocol + "://" + (options.host || window.location.hostname) + ":" + options.port;
var url = protocol + "://" + (options.host || window.location.hostname);
if (options.port != 80) {
url = url + ":" + options.port;
}
var ws = new WebSocket(url);
ws.onopen = function () {
info("WebSocket client listening for changes...");
Expand Down

0 comments on commit 3eedbcb

Please sign in to comment.