This repository was archived by the owner on Jun 26, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1111'use strict' ;
1212
1313var 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+ ) ;
1520
1621var script = document . createElement ( 'script' ) ;
17- script . textContent = source ;
22+ script . textContent = js ;
1823document . documentElement . appendChild ( script ) ;
1924script . parentNode . removeChild ( script ) ;
Original file line number Diff line number Diff line change 1313var Agent = require ( '../../../agent/Agent' ) ;
1414var Bridge = require ( '../../../agent/Bridge' ) ;
1515var setupHighlighter = require ( '../../../frontend/Highlighter/setup' ) ;
16+ var setupRelay = require ( '../../../plugins/Relay/backend' ) ;
1617
1718var inject = require ( '../../../agent/inject' ) ;
1819
@@ -80,6 +81,8 @@ function setup() {
8081 listeners = [ ] ;
8182 } ) ;
8283
84+ setupRelay ( bridge , agent , window . __REACT_DEVTOOLS_GLOBAL_HOOK__ ) ;
85+
8386 if ( window . document && window . document . createElement ) {
8487 setupHighlighter ( agent ) ;
8588 }
You can’t perform that action at this time.
0 commit comments