Skip to content

Commit

Permalink
refactor: weinre path
Browse files Browse the repository at this point in the history
  • Loading branch information
avwo committed May 27, 2018
1 parent 3e929a0 commit b43830d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/inspectors/weinre.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function getScript(req, name, isHtml) {
var weinrePath = config.WEBUI_PATH + 'weinre.' + config.weinreport;
var weinreUrl = host + weinrePath + '/target/target-script-min.js#' + (name || 'anonymous');
var result = isHtml ? weinreHtmlScript : weinreScript;
return result.replace('$WEINRE_PATH', weinrePath).replace('$WEINRE_URL', weinreUrl);
return result.replace('$WEINRE_PATH', host + weinrePath).replace('$WEINRE_URL', weinreUrl);
}

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

0 comments on commit b43830d

Please sign in to comment.