Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Simpler version of Electron code to create a new window with an icon.
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