const { app, BrowserWindow } = require('electron'
createWindow = () => {
// Create the browser window.
const win = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nodeIntegration: true,
},
});
// and load the index.html of the app.
win.loadFile('index.html');
};
app.whenReady().then(createWindow);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const { app, BrowserWindow } = require('electron'
1
2
createWindow = () => {
3
// Create the browser window.
4
const win = new BrowserWindow({
5
width: 800,
6
height: 600,
7
webPreferences: {
8
nodeIntegration: true,
9
},
10
});
11
12
// and load the index.html of the app.
13
win.loadFile('index.html');
14
};
15
16
app.whenReady().then(createWindow);
17
createWindow = () => {
// Create the browser window.
const win = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nodeIntegration: true,
},
});
// and load the index.html of the app.
win.loadFile('index.html');
};
const { app, BrowserWindow } = require('electron'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
app.whenReady().then(createWindow);
17
const win = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nodeIntegration: true,
},
});
const { app, BrowserWindow } = require('electron'
1
2
createWindow = () => {
3
// Create the browser window.
4
5
6
7
8
9
10
11
12
// and load the index.html of the app.
13
win.loadFile('index.html');
14
};
15
16
app.whenReady().then(createWindow);
17
win.loadFile('index.html');
const { app, BrowserWindow } = require('electron'
1
2
createWindow = () => {
3
// Create the browser window.
4
const win = new BrowserWindow({
5
width: 800,
6
height: 600,
7
webPreferences: {
8
nodeIntegration: true,
9
},
10
});
11
12
// and load the index.html of the app.
13
14
};
15
16
app.whenReady().then(createWindow);
17 app.whenReady().then(createWindow);
const { app, BrowserWindow } = require('electron'
1
2
createWindow = () => {
3
// Create the browser window.
4
const win = new BrowserWindow({
5
width: 800,
6
height: 600,
7
webPreferences: {
8
nodeIntegration: true,
9
},
10
});
11
12
// and load the index.html of the app.
13
win.loadFile('index.html');
14
};
15
16
17