diff --git a/packages/react-devtools-extensions/src/main/index.js b/packages/react-devtools-extensions/src/main/index.js index 76b320f1a66..c2616cf04a1 100644 --- a/packages/react-devtools-extensions/src/main/index.js +++ b/packages/react-devtools-extensions/src/main/index.js @@ -711,6 +711,12 @@ if (chrome.devtools.panels.setOpenResourceHandler) { resource.url, lineNumber - 1, columnNumber - 1, + maybeError => { + if (maybeError && maybeError.isError) { + // Not a resource Chrome can open. Fallback to browser default behavior. + window.open(resource.url); + } + }, ); }, );