From 17351400a9cd17938e7023743d838f2643251bce Mon Sep 17 00:00:00 2001 From: Srikanth Kolli Date: Wed, 14 Sep 2022 02:51:59 +0530 Subject: [PATCH 1/2] Show DevTools icons in panel --- packages/react-devtools-extensions/src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-devtools-extensions/src/main.js b/packages/react-devtools-extensions/src/main.js index 15bf1e8a32896..bf6e562ee6094 100644 --- a/packages/react-devtools-extensions/src/main.js +++ b/packages/react-devtools-extensions/src/main.js @@ -472,7 +472,7 @@ function createPanelIfReactLoaded() { let needsToSyncElementSelection = false; chrome.devtools.panels.create( - isChrome ? '⚛️ Components' : 'Components', + (isChrome || isEdge) ? '⚛️ Components' : 'Components', '', 'panel.html', extensionPanel => { @@ -503,7 +503,7 @@ function createPanelIfReactLoaded() { ); chrome.devtools.panels.create( - isChrome ? '⚛️ Profiler' : 'Profiler', + (isChrome || isEdge) ? '⚛️ Profiler' : 'Profiler', '', 'panel.html', extensionPanel => { From 465ebcf9a425b415845b31eaffd8245ffe32070d Mon Sep 17 00:00:00 2001 From: Srikanth Kolli Date: Wed, 14 Sep 2022 20:29:34 +0530 Subject: [PATCH 2/2] Fix lint issue --- packages/react-devtools-extensions/src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-devtools-extensions/src/main.js b/packages/react-devtools-extensions/src/main.js index bf6e562ee6094..69f5c21e79621 100644 --- a/packages/react-devtools-extensions/src/main.js +++ b/packages/react-devtools-extensions/src/main.js @@ -472,7 +472,7 @@ function createPanelIfReactLoaded() { let needsToSyncElementSelection = false; chrome.devtools.panels.create( - (isChrome || isEdge) ? '⚛️ Components' : 'Components', + isChrome || isEdge ? '⚛️ Components' : 'Components', '', 'panel.html', extensionPanel => { @@ -503,7 +503,7 @@ function createPanelIfReactLoaded() { ); chrome.devtools.panels.create( - (isChrome || isEdge) ? '⚛️ Profiler' : 'Profiler', + isChrome || isEdge ? '⚛️ Profiler' : 'Profiler', '', 'panel.html', extensionPanel => {