Created
February 21, 2019 18:42
-
-
Save graphoarty/3f1b58553358e2351c5400a15bc0411d to your computer and use it in GitHub Desktop.
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
// main.js | |
// Import app and BrowserWindow | |
const { app, BrowserWindow } = require('electron'); | |
// When Electron has finished initializing after import, run the window creation function | |
app.on('ready', function(){ | |
// Browser window actually creates the window (Create and control browser windows.) | |
win = new BrowserWindow({ width: 1280, height: 720 }); | |
// Load the HTML file into the Window | |
win.loadFile('index.html'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment