Skip to content

Commit

Permalink
Remove es6 features from webpack dev client
Browse files Browse the repository at this point in the history
  • Loading branch information
tharakawj committed Oct 4, 2017
1 parent 88cd256 commit 64ef981
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/react-dev-utils/webpackHotDevClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,14 @@ var launchEditorEndpoint = require('./launchEditorEndpoint');
var formatWebpackMessages = require('./formatWebpackMessages');
var ErrorOverlay = require('react-error-overlay');

ErrorOverlay.listenToOpenInEditor(function OpenInEditor({
fileName,
lineNumber,
}) {
ErrorOverlay.listenToOpenInEditor(function OpenInEditor(errorLocation) {
// Keep this sync with errorOverlayMiddleware.js
fetch(
`${launchEditorEndpoint}?fileName=` +
window.encodeURIComponent(fileName) +
window.encodeURIComponent(errorLocation.fileName) +
'&lineNumber=' +
window.encodeURIComponent(lineNumber || 1)
).then(() => {}, () => {});
window.encodeURIComponent(errorLocation.lineNumber || 1)
);
});

// We need to keep track of if there has been a runtime error.
Expand Down

0 comments on commit 64ef981

Please sign in to comment.