Skip to content

Commit

Permalink
Fixes to jscProfilerMiddleware
Browse files Browse the repository at this point in the history
Reviewed By: bnham

Differential Revision: D3691098

fbshipit-source-id: dbadda69ff0b6a8d9d349b33c45234ff4f8c3b65
  • Loading branch information
dcaspi authored and Facebook Github Bot 8 committed Aug 10, 2016
1 parent c74938e commit 0cc3b4b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions local-cli/server/middleware/jscProfilerMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class TreeTransformator {

const parsedUrl = urlLib.parse(url);
const options = {
host: parsedUrl.hostname,
host: 'localhost',
port: parsedUrl.port,
path: parsedUrl.pathname.replace(/\.bundle$/, '.map') + parsedUrl.search,
};
Expand All @@ -97,13 +97,11 @@ class TreeTransformator {
if (!sawEnd) {
console.error('Connection terminated prematurely because of: '
+ err.code + ' for url: ' + url);
this.urlResults[url] = null;
callback();
}
});
}).on('error', (err) => {
console.error('Could not get response from: ' + url);
this.urlResults[url] = null;
callback();
});
}
Expand Down

0 comments on commit 0cc3b4b

Please sign in to comment.