Skip to content

Commit

Permalink
change to EstuaryProtocol.js to be robust to situations where web con…
Browse files Browse the repository at this point in the history
…nections are proxied on different ports
  • Loading branch information
dktr0 committed Sep 17, 2018
1 parent e5e6137 commit bd99e66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion static/EstuaryProtocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ EstuaryProtocol = function () {
this.status = "initializing...";
this.wsReady = false;
this.responses = new Array;
this.setUrl("ws://" + location.hostname + ":" + location.port);
var port = "";
if(location.port != "") port = ":" + location.port;
this.setUrl("ws://" + location.hostname + port + location.pathname);
}

EstuaryProtocol.prototype.setUrl = function(x) {
Expand Down

0 comments on commit bd99e66

Please sign in to comment.