Skip to content

Instantly share code, notes, and snippets.

@ehgoodenough
Last active October 24, 2016 21:31
Show Gist options
  • Save ehgoodenough/bb837517ef0c06a34003630ce4c0f8cd to your computer and use it in GitHub Desktop.
Save ehgoodenough/bb837517ef0c06a34003630ce4c0f8cd to your computer and use it in GitHub Desktop.
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