This repository was archived by the owner on Jun 26, 2020. It is now read-only.
File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 11
11
'use strict' ;
12
12
13
13
var installGlobalHook = require ( '../../../backend/installGlobalHook.js' ) ;
14
- var source = ';(' + installGlobalHook . toString ( ) + ')(window);' ;
14
+ var installRelayHook = require ( '../../../plugins/Relay/installRelayHook.js' ) ;
15
+
16
+ var js = (
17
+ ';(' + installGlobalHook . toString ( ) + '(window))' +
18
+ ';(' + installRelayHook . toString ( ) + '(window))'
19
+ ) ;
15
20
16
21
var script = document . createElement ( 'script' ) ;
17
- script . textContent = source ;
22
+ script . textContent = js ;
18
23
document . documentElement . appendChild ( script ) ;
19
24
script . parentNode . removeChild ( script ) ;
Original file line number Diff line number Diff line change 13
13
var Agent = require ( '../../../agent/Agent' ) ;
14
14
var Bridge = require ( '../../../agent/Bridge' ) ;
15
15
var setupHighlighter = require ( '../../../frontend/Highlighter/setup' ) ;
16
+ var setupRelay = require ( '../../../plugins/Relay/backend' ) ;
16
17
17
18
var inject = require ( '../../../agent/inject' ) ;
18
19
@@ -80,6 +81,8 @@ function setup() {
80
81
listeners = [ ] ;
81
82
} ) ;
82
83
84
+ setupRelay ( bridge , agent , window . __REACT_DEVTOOLS_GLOBAL_HOOK__ ) ;
85
+
83
86
if ( window . document && window . document . createElement ) {
84
87
setupHighlighter ( agent ) ;
85
88
}
You can’t perform that action at this time.
0 commit comments