Created
April 6, 2020 01:58
-
-
Save gdonega/e770a28417933f1afba82b769cda66bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
function createWindow () { | |
/** | |
* Initial window options | |
*/ | |
mainWindow = new BrowserWindow({ | |
height: 563, | |
useContentSize: true, | |
width: 1000, | |
webPreferences: { | |
nodeIntegration: true, | |
nodeIntegrationInWorker: true | |
} | |
}) | |
mainWindow.loadURL(winURL) | |
mainWindow.on('closed', () => { | |
mainWindow = null | |
}) | |
} | |
app.allowRendererProcessReuse = true | |
app.on('ready', createWindow) | |
app.on('window-all-closed', () => { | |
if (process.platform !== 'darwin') { | |
app.quit() | |
} | |
}) | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment