-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
37 lines (23 loc) · 706 Bytes
/
Copy pathmain.js
File metadata and controls
37 lines (23 loc) · 706 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
25
26
27
28
29
30
31
32
33
34
35
36
37
const electron = require('electron')
const path = require('path')
const { app, BrowserWindow, ipcMain } = require('electron')
function createWindow () {
/*Initializes the index window with an
overview of all the functionality the app provides. */
window = new BrowserWindow({
width : 600,
height : 500,
icon: path.join(__dirname, './assets/favicon.png'),
webPreferences: {
nodeIntegration: true
}
})
window.loadFile(filePath = path.join(__dirname, '/src/index.html'))
window.removeMenu()
}
app.on('ready', createWindow);
app.on('window-all-closed', () => {
if (process.platform !== 'darwin'){
app.quit()
}
});