Skip to content

Instantly share code, notes, and snippets.

@graphoarty
Created February 21, 2019 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save graphoarty/3f1b58553358e2351c5400a15bc0411d to your computer and use it in GitHub Desktop.
Save graphoarty/3f1b58553358e2351c5400a15bc0411d to your computer and use it in GitHub Desktop.
// 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