Created
March 12, 2018 13:19
-
-
Save zonayedpca/2e3252772f972687e00f8149d272ac55 to your computer and use it in GitHub Desktop.
Basic Electron App (ES5 Version)
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
var app = require('electron').app, | |
BrowserWindow = require('electron').BrowserWindow; | |
app.on('ready', function() { | |
//Your main code will be here | |
var mainWindow = new BrowserWindow({ | |
width: 800, | |
height: 600 | |
}); | |
//Load the content | |
mainWindow.loadURL('file://' + __dirname + '/public/index.html'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment