(appIframe, devtoolsContainer, appSource)
| 33 | } |
| 34 | |
| 35 | function init(appIframe, devtoolsContainer, appSource) { |
| 36 | const {contentDocument, contentWindow} = appIframe; |
| 37 | |
| 38 | initializeBackend(contentWindow); |
| 39 | |
| 40 | const DevTools = createDevTools(contentWindow); |
| 41 | |
| 42 | inject(contentDocument, appSource, () => { |
| 43 | ReactDOMClient.createRoot(devtoolsContainer).render( |
| 44 | <DevTools |
| 45 | hookNamesModuleLoaderFunction={hookNamesModuleLoaderFunction} |
| 46 | showTabBar={true} |
| 47 | />, |
| 48 | ); |
| 49 | }); |
| 50 | |
| 51 | activateBackend(contentWindow); |
| 52 | } |
| 53 | |
| 54 | const iframe = document.getElementById(class="st">'iframe'); |
| 55 | const devtoolsContainer = document.getElementById(class="st">'devtools'); |
no test coverage detected