INNER CODE UNIT · JavaScript
createWindow
pixel-point/kube-forwarder · src/main/index.js:29
function createWindow() {
/**
* Initial window options
*/
mainWindow = new BrowserWindow({
height: os.platform() === 'win32' ? 562 : 542,
useContentSize: true,
width: 800,
titleBarStyle: 'hiddenInset',
resizable: process.env.NODE_ENV === 'development',
webPreferences: {
webSecurity: false,
nodeIntegration: true
}
})
mainWindow.loadURL(winURL)