@samitouri / QOS-React-2 / commits / 6c3dcc7a47

Enable 'Reload and Start Profiling' for Microsoft Edge (#22631)

Erik Andersson committed Oct 27, 2021 at 16:20 UTC 6c3dcc7a478f53aabd24b9712a7e506cf3702a64
1 file changed +2 -1
packages/react-devtools-extensions/src/main.js
+2 -1
@@ -33,6 +33,7 @@ const LOCAL_STORAGE_SUPPORTS_PROFILING_KEY =
33 'React::DevTools::supportsProfiling';
34
35 const isChrome = getBrowserName() === 'Chrome';
36 +const isEdge = getBrowserName() === 'Edge';
37
38 let panelCreated = false;
39
@@ -203,7 +204,7 @@ function createPanelIfReactLoaded() {
204
205 store = new Store(bridge, {
206 isProfiling,
206 - supportsReloadAndProfile: isChrome,
207 + supportsReloadAndProfile: isChrome || isEdge,
208 supportsProfiling,
209 // At this time, the scheduling profiler can only parse Chrome performance profiles.
210 supportsSchedulingProfiler: isChrome,