Skip to content

Commit 4378d2a

Browse files
author
antelle
committed
fixing linux build
1 parent e5253a4 commit 4378d2a

File tree

1 file changed

+3
-28
lines changed

1 file changed

+3
-28
lines changed

test-app/index.js

+3-28
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
1-
const { app, BrowserWindow } = require('electron');
2-
3-
let win;
4-
5-
function createWindow() {
6-
win = new BrowserWindow({
7-
width: 800,
8-
height: 600,
9-
webPreferences: {
10-
contextIsolation: false
11-
}
12-
});
13-
}
14-
15-
app.whenReady().then(() => {
16-
console.log('Test app started');
17-
setTimeout(() => win.close(), 5000);
18-
process.stdin.on('data', () => win.close());
19-
20-
createWindow();
21-
});
22-
23-
app.on('window-all-closed', () => {
24-
if (win) {
25-
win = null;
26-
}
27-
app.quit();
28-
});
1+
console.log('Test app started');
2+
setTimeout(() => process.exit(0), 5000);
3+
process.stdin.on('data', () => process.exit(0));

0 commit comments

Comments
 (0)