mirror of
https://github.com/facebook/react.git
synced 2026-02-21 19:31:52 +00:00
[DevTools] Fix console links not being openable (#35229)
This commit is contained in:
committed by
GitHub
parent
d29087523a
commit
7fccd6b5a3
@@ -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);
|
||||
}
|
||||
},
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user