Upload
shota-ozaki
View
4.161
Download
0
Embed Size (px)
Citation preview
index.html
<!DOCTYPE html><html><head>
<title>Hello World</title></head><body>
<h1>Welcome to Electron!!</h1></body></html>
index.js
const electron = require('electron');const app = electron.appconst BrowserWindow = electron.BrowserWindow
var mainWindow = null;
app.on('ready', function() {mainWindow = new BrowserWindow({width: 800, height: 600});mainWindow.loadURL('file://' + __dirname + '/index.html');mainWindow.on('closed', function() {mainWindow = null;
});});