Update dashboard.html, per comments in PR.

This commit is contained in:
12As 2016-02-24 15:22:31 -06:00
parent 4a51ee1c83
commit 3f0c433668

View File

@ -1438,11 +1438,11 @@ var Dashboard = function() {
JobsRenderer.prototype._renderDownloadLine = JobsRenderer.prototype._moreDomRenderDownloadLine;
}
// If no ?host=, connect to this server not some other server
if(args["host"]) {
this.host = args["host"];
} else {
// Guess that the WebSocket port is same as the HTTP port
this.host = location.hostname + ':' + Number(location.port);
this.host = location.host;
}
this.dumpTraffic = args["dumpMax"] && Number(args["dumpMax"]) > 0;
if(this.dumpTraffic) {