-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapp.js
More file actions
24 lines (19 loc) · 690 Bytes
/
app.js
File metadata and controls
24 lines (19 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
var electron = require('electron')
var path = require('path')
// Keep a global reference of the window object so that it isn't garbage collected
var mainWindow = null
// This method will be called when Electron has finished
// initializing and is ready to create browser windows.
electron.app.on('ready', function () {
// Create the Splash Screen window
mainWindow = new electron.BrowserWindow({
width: 1000,
height: 780,
frame: true,
icon: path.join(__dirname, 'filmstrip.png'),
webPreferences: { experimentalFeatures: true}
})
// Dev mode: comment out the following line
// mainWindow.setMenu(null)
mainWindow.loadURL('file://' + __dirname + '/player.html')
})