MCPcopy Create free account
hub / github.com/jhen0409/react-native-debugger / catchConsoleLogLink

Function catchConsoleLogLink

electron/devtools.js:31–37  ·  view source on GitHub ↗
(win, host = 'localhost', port = 8081)

Source from the content-addressed store, hash-verified

29`
30
31export const catchConsoleLogLink = (win, host = 'localhost', port = 8081) => {
32 if (win.devToolsWebContents) {
33 return win.devToolsWebContents.executeJavaScript(`(() => {
34 ${getCatchConsoleLogScript(host, port)}
35 })()`)
36 }
37}
38
39export const removeUnecessaryTabs = (win) => {
40 if (

Callers 2

createWindowFunction · 0.90
componentDidMountFunction · 0.90

Calls 1

getCatchConsoleLogScriptFunction · 0.85

Tested by

no test coverage detected