Skip to content

Commit 64ef981

Browse files
committed
Remove es6 features from webpack dev client
1 parent 88cd256 commit 64ef981

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

packages/react-dev-utils/webpackHotDevClient.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,14 @@ var launchEditorEndpoint = require('./launchEditorEndpoint');
2323
var formatWebpackMessages = require('./formatWebpackMessages');
2424
var ErrorOverlay = require('react-error-overlay');
2525

26-
ErrorOverlay.listenToOpenInEditor(function OpenInEditor({
27-
fileName,
28-
lineNumber,
29-
}) {
26+
ErrorOverlay.listenToOpenInEditor(function OpenInEditor(errorLocation) {
3027
// Keep this sync with errorOverlayMiddleware.js
3128
fetch(
3229
`${launchEditorEndpoint}?fileName=` +
33-
window.encodeURIComponent(fileName) +
30+
window.encodeURIComponent(errorLocation.fileName) +
3431
'&lineNumber=' +
35-
window.encodeURIComponent(lineNumber || 1)
36-
).then(() => {}, () => {});
32+
window.encodeURIComponent(errorLocation.lineNumber || 1)
33+
);
3734
});
3835

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

0 commit comments

Comments
 (0)