Skip to content

Commit

Permalink
refactor: code
Browse files Browse the repository at this point in the history
  • Loading branch information
avwo committed May 27, 2018
1 parent 6b4f17f commit 25d3bd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/inspectors/weinre.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ function getScript(req, name, isHtml) {
host = config.localUIHost;
}
host = (req.isHttps ? 'https://' : 'http://') + host;
var weinrePath = config.WEBUI_PATH + 'weinre.' + config.weinreport;
var weinreUrl = host + weinrePath + '/target/target-script-min.js#' + (name || 'anonymous');
var weinrePath = host + config.WEBUI_PATH + 'weinre.' + config.weinreport;
var weinreUrl = weinrePath + '/target/target-script-min.js#' + (name || 'anonymous');
var result = isHtml ? weinreHtmlScript : weinreScript;
return result.replace('$WEINRE_PATH', host + weinrePath).replace('$WEINRE_URL', weinreUrl);
return result.replace('$WEINRE_PATH', weinrePath).replace('$WEINRE_URL', weinreUrl);
}

module.exports = function(req, res, next) {
Expand Down

0 comments on commit 25d3bd2

Please sign in to comment.