Skip to content

Commit

Permalink
Merge pull request #470 from nightwing/patch-1
Browse files Browse the repository at this point in the history
Allow running dev-server behind https proxy
  • Loading branch information
sokra committed May 15, 2016
2 parents 873d834 + 70bc376 commit 7fc08e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var onSocketMsg = {

var newConnection = function() {
sock = new SockJS(url.format({
protocol: urlParts.protocol,
protocol: (window.location.protocol == "https:") ? "https:" : urlParts.protocol,
auth: urlParts.auth,
hostname: (urlParts.hostname === '0.0.0.0') ? window.location.hostname : urlParts.hostname,
port: (urlParts.port == '0') ? window.location.port : urlParts.port,
Expand Down

0 comments on commit 7fc08e8

Please sign in to comment.