MCPcopy Index your code
hub / github.com/jhen0409/react-native-debugger / toggleDevTools

Function toggleDevTools

electron/menu/common.js:1–8  ·  view source on GitHub ↗
(win, type)

Source from the content-addressed store, hash-verified

1export const toggleDevTools = (win, type) => {
2 if (!win || !type) return
3 if (type === 'chrome') {
4 win.toggleDevTools()
5 return
6 }
7 win.webContents.send('toggle-devtools', type)
8}
9
10export const toggleFullscreen = (win) => win && win.setFullScreen(!win.isFullScreen())
11export const setAlwaysOnTop = (win, checked) => win && win.setAlwaysOnTop(checked)

Callers 3

registerContextMenuFunction · 0.90
darwin.jsFile · 0.90
linux+win.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected