File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -23,17 +23,14 @@ var launchEditorEndpoint = require('./launchEditorEndpoint');
23
23
var formatWebpackMessages = require ( './formatWebpackMessages' ) ;
24
24
var ErrorOverlay = require ( 'react-error-overlay' ) ;
25
25
26
- ErrorOverlay . listenToOpenInEditor ( function OpenInEditor ( {
27
- fileName,
28
- lineNumber,
29
- } ) {
26
+ ErrorOverlay . listenToOpenInEditor ( function OpenInEditor ( errorLocation ) {
30
27
// Keep this sync with errorOverlayMiddleware.js
31
28
fetch (
32
29
`${ launchEditorEndpoint } ?fileName=` +
33
- window . encodeURIComponent ( fileName ) +
30
+ window . encodeURIComponent ( errorLocation . fileName ) +
34
31
'&lineNumber=' +
35
- window . encodeURIComponent ( lineNumber || 1 )
36
- ) . then ( ( ) => { } , ( ) => { } ) ;
32
+ window . encodeURIComponent ( errorLocation . lineNumber || 1 )
33
+ ) ;
37
34
} ) ;
38
35
39
36
// We need to keep track of if there has been a runtime error.
You can’t perform that action at this time.
0 commit comments