File tree 2 files changed +4
-5
lines changed
packages/react-devtools-extensions/src 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,15 @@ function welcome(event) {
13
13
) {
14
14
return ;
15
15
}
16
- const extensionId = event . data . extensionId ;
17
16
18
17
window . removeEventListener ( 'message' , welcome ) ;
19
18
20
- setup ( window . __REACT_DEVTOOLS_GLOBAL_HOOK__ , extensionId ) ;
19
+ setup ( window . __REACT_DEVTOOLS_GLOBAL_HOOK__ ) ;
21
20
}
22
21
23
22
window . addEventListener ( 'message' , welcome ) ;
24
23
25
- function setup ( hook , extensionId ) {
24
+ function setup ( hook ) {
26
25
if ( hook == null ) {
27
26
// DevTools didn't get injected into this page (maybe b'c of the contentType).
28
27
return ;
@@ -56,7 +55,6 @@ function setup(hook, extensionId) {
56
55
{
57
56
source : 'react-devtools-bridge' ,
58
57
payload : { event, payload} ,
59
- extensionId,
60
58
} ,
61
59
'*' ,
62
60
transferable ,
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ const LOCAL_STORAGE_SUPPORTS_PROFILING_KEY =
27
27
'React::DevTools::supportsProfiling' ;
28
28
29
29
const isChrome = getBrowserName ( ) === 'Chrome' ;
30
+ const isEdge = getBrowserName ( ) === 'Edge' ;
30
31
31
32
let panelCreated = false ;
32
33
@@ -149,7 +150,7 @@ function createPanelIfReactLoaded() {
149
150
150
151
store = new Store ( bridge , {
151
152
isProfiling,
152
- supportsReloadAndProfile : isChrome ,
153
+ supportsReloadAndProfile : isChrome || isEdge ,
153
154
supportsProfiling,
154
155
// At this time, the scheduling profiler can only parse Chrome performance profiles.
155
156
supportsSchedulingProfiler : isChrome ,
You can’t perform that action at this time.
0 commit comments