[DevTools] Feature detect createSidebarPane (#33988)
Same as #33987 but for the sidebar pane creation.
Sebastian Markbåge committed
Jul 24, 2025 at 17:42 UTC
5020d48d2809c33db980f20726d1d0a7b2c8e31a
1 file changed
+1
-1
packages/react-devtools-extensions/src/main/index.js
+1
-1
@@ -317,7 +317,7 @@ function createSourcesEditorPanel() {
317
}
318
319
const sourcesPanel = chrome.devtools.panels.sources;
320
- if (!sourcesPanel) {
320
+ if (!sourcesPanel || !sourcesPanel.createSidebarPane) {
321
// Firefox doesn't currently support extending the source panel.
322
return;
323
}