Created
March 17, 2017 21:02
-
-
Save scripting/121df9ef0e1adb4ff507833d958f3309 to your computer and use it in GitHub Desktop.
Simpler version of Electron code to create a new window with an icon.
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
app.on ("ready", function () { | |
mainWindow = new BrowserWindow ({ | |
width: 1100, | |
height: 1000, | |
icon: __dirname + "/" + "pork.png" | |
}); | |
mainWindow.loadURL('file://' + __dirname + '/index.html'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment