Skip to content

Commit 5020d48

Browse files
authored
[DevTools] Feature detect createSidebarPane (#33988)
Same as #33987 but for the sidebar pane creation.
1 parent 3082604 commit 5020d48

File tree

1 file changed

+1
-1
lines changed
  • packages/react-devtools-extensions/src/main

1 file changed

+1
-1
lines changed

packages/react-devtools-extensions/src/main/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ function createSourcesEditorPanel() {
317317
}
318318

319319
const sourcesPanel = chrome.devtools.panels.sources;
320-
if (!sourcesPanel) {
320+
if (!sourcesPanel || !sourcesPanel.createSidebarPane) {
321321
// Firefox doesn't currently support extending the source panel.
322322
return;
323323
}

0 commit comments

Comments
 (0)