File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
packages/react-devtools-extensions/src Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,15 @@ function welcome(event) {
1313 ) {
1414 return ;
1515 }
16- const extensionId = event . data . extensionId ;
1716
1817 window . removeEventListener ( 'message' , welcome ) ;
1918
20- setup ( window . __REACT_DEVTOOLS_GLOBAL_HOOK__ , extensionId ) ;
19+ setup ( window . __REACT_DEVTOOLS_GLOBAL_HOOK__ ) ;
2120}
2221
2322window . addEventListener ( 'message' , welcome ) ;
2423
25- function setup ( hook , extensionId ) {
24+ function setup ( hook ) {
2625 if ( hook == null ) {
2726 // DevTools didn't get injected into this page (maybe b'c of the contentType).
2827 return ;
@@ -56,7 +55,6 @@ function setup(hook, extensionId) {
5655 {
5756 source : 'react-devtools-bridge' ,
5857 payload : { event, payload} ,
59- extensionId,
6058 } ,
6159 '*' ,
6260 transferable ,
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ const LOCAL_STORAGE_SUPPORTS_PROFILING_KEY =
2727 'React::DevTools::supportsProfiling' ;
2828
2929const isChrome = getBrowserName ( ) === 'Chrome' ;
30+ const isEdge = getBrowserName ( ) === 'Edge' ;
3031
3132let 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 ,
You can’t perform that action at this time.
0 commit comments