Skip to content

Commit c714a49

Browse files
eoanderssonzhengjitf
authored andcommitted
Enable 'Reload and Start Profiling' for Microsoft Edge (facebook#22631)
1 parent df3ae46 commit c714a49

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
@@ -33,6 +33,7 @@ const LOCAL_STORAGE_SUPPORTS_PROFILING_KEY =
3333
'React::DevTools::supportsProfiling';
3434

3535
const isChrome = getBrowserName() === 'Chrome';
36+
const isEdge = getBrowserName() === 'Edge';
3637

3738
let panelCreated = false;
3839

@@ -203,7 +204,7 @@ function createPanelIfReactLoaded() {
203204

204205
store = new Store(bridge, {
205206
isProfiling,
206-
supportsReloadAndProfile: isChrome,
207+
supportsReloadAndProfile: isChrome || isEdge,
207208
supportsProfiling,
208209
// At this time, the scheduling profiler can only parse Chrome performance profiles.
209210
supportsSchedulingProfiler: isChrome,

0 commit comments

Comments
 (0)