(win, type)
| 1 | export 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 | |
| 10 | export const toggleFullscreen = (win) => win && win.setFullScreen(!win.isFullScreen()) |
| 11 | export const setAlwaysOnTop = (win, checked) => win && win.setAlwaysOnTop(checked) |
no outgoing calls
no test coverage detected