Created
February 27, 2020 17:10
-
-
Save trevorfoskett/810141b1480bb63ead07527abc864ad2 to your computer and use it in GitHub Desktop.
Create a new window containing the settings page.
This file contains 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 createSettings() { | |
settingsPage = new BrowserWindow({ | |
parent: win, | |
width: 500, | |
height: 310, | |
webPreferences: { | |
nodeIntegration: true | |
} | |
}) | |
settingsPage.loadFile('./pages/settings.html'); | |
settingsPage.on('closed', () => { | |
settingsPage = null; | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment