Skip to content

Commit

Permalink
Reapply changes from facebook#22631
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Tejada committed Oct 28, 2021
1 parent c624dc3 commit 92ef9dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-devtools-extensions/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const LOCAL_STORAGE_SUPPORTS_PROFILING_KEY =
'React::DevTools::supportsProfiling';

const isChrome = getBrowserName() === 'Chrome';
const isEdge = getBrowserName() === 'Edge';

let panelCreated = false;

Expand Down Expand Up @@ -149,7 +150,7 @@ function createPanelIfReactLoaded() {

store = new Store(bridge, {
isProfiling,
supportsReloadAndProfile: isChrome,
supportsReloadAndProfile: isChrome || isEdge,
supportsProfiling,
// At this time, the scheduling profiler can only parse Chrome performance profiles.
supportsSchedulingProfiler: isChrome,
Expand Down

0 comments on commit 92ef9dd

Please sign in to comment.