Skip to content

Commit

Permalink
fixing debug logger port, fixes #12
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehenrty committed Feb 21, 2013
1 parent b822986 commit bea2f2b
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 bea2f2b

Please sign in to comment.