Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
194a2910
Unverified
Commit
194a2910
authored
6 years ago
by
Joe Haddad
Committed by
GitHub
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix overlay IE 11 compatibility (#5203)
parent
1e1019ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-error-overlay/src/utils/mapper.js
+4
-3
packages/react-error-overlay/src/utils/mapper.js
with
4 additions
and
3 deletions
+4
-3
packages/react-error-overlay/src/utils/mapper.js
+
4
-
3
View file @
194a2910
...
...
@@ -34,9 +34,10 @@ async function map(
});
await
settle
(
files
.
map
(
async
fileName
=>
{
const
fetchUrl
=
fileName
.
startsWith
(
'
webpack-internal:
'
)
?
`/__get-internal-source?fileName=
${
encodeURIComponent
(
fileName
)}
`
:
fileName
;
const
fetchUrl
=
fileName
.
indexOf
(
'
webpack-internal:
'
)
===
0
?
`/__get-internal-source?fileName=
${
encodeURIComponent
(
fileName
)}
`
:
fileName
;
const
fileSource
=
await
fetch
(
fetchUrl
).
then
(
r
=>
r
.
text
());
const
map
=
await
getSourceMap
(
fileName
,
fileSource
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment