Last active
October 24, 2016 21:31
-
-
Save ehgoodenough/bb837517ef0c06a34003630ce4c0f8cd to your computer and use it in GitHub Desktop.
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
var Electron = require("electron") | |
var window = null | |
Electron.app.on("ready", function() { | |
window = new Electron.BrowserWindow({width: 800, height: 600}) | |
window.loadURL("file://" + __dirname + "/source/index.html") | |
window.webContents.openDevTools({mode: "bottom"}) | |
window.on("closed", function() { | |
window = null | |
}) | |
}) | |
Electron.app.on("window-all-closed", function() { | |
Electron.app.quit() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment