Skip to content

Commit

Permalink
Merge pull request play-co#20 from gameclosure/fix-debuglogger-port
Browse files Browse the repository at this point in the history
fixing debug logger port, fixes #12
  • Loading branch information
mikehenrty committed Feb 23, 2013
2 parents aa781f0 + bea2f2b commit fdd6afa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/serve/plugins/simulate/static/GUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var GUI = exports = Class(squill.Widget, function(supr) {
this.init = function(opts) {
supr(this, 'init', arguments);

this._portManager = new PortManager({ range: '9200-9220 exclusive' });
this._portManager = new PortManager({ range: ''+window.location.port + '-' + (window.location.port + 20) + ' exclusive' });

this._manifest = opts.manifest;
this._appID = opts.manifest.appID;
Expand Down
2 changes: 2 additions & 0 deletions src/serve/plugins/simulate/static/util/Simulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ var Chrome = exports = Class(squill.Widget, function (supr) {
var r = new std.uri('/simulate/' + this._appID + '/' + this._params.target + '/')
.addQuery(query)
.addHash(hash)
.setProtocol("http")
.setHost(window.location.hostname)
.setPort(this._port)

return r;
Expand Down

0 comments on commit fdd6afa

Please sign in to comment.