Skip to content

Commit 92ef9dd

Browse files
author
Juan Tejada
committed
Reapply changes from facebook#22631
1 parent c624dc3 commit 92ef9dd

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const LOCAL_STORAGE_SUPPORTS_PROFILING_KEY =
2727
'React::DevTools::supportsProfiling';
2828

2929
const isChrome = getBrowserName() === 'Chrome';
30+
const isEdge = getBrowserName() === 'Edge';
3031

3132
let panelCreated = false;
3233

@@ -149,7 +150,7 @@ function createPanelIfReactLoaded() {
149150

150151
store = new Store(bridge, {
151152
isProfiling,
152-
supportsReloadAndProfile: isChrome,
153+
supportsReloadAndProfile: isChrome || isEdge,
153154
supportsProfiling,
154155
// At this time, the scheduling profiler can only parse Chrome performance profiles.
155156
supportsSchedulingProfiler: isChrome,

0 commit comments

Comments
 (0)