We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51bf7b7 commit 3ca6dabCopy full SHA for 3ca6dab
main.js
@@ -1,8 +1,9 @@
1
-import { app, BrowserWindow } from 'electron';
+import electron from 'electron';
2
import path from 'path';
3
import { fileURLToPath } from 'url';
4
5
const __filename = fileURLToPath(import.meta.url);
6
+const { app, BrowserWindow } = electron;
7
const __dirname = path.dirname(__filename);
8
9
let mainWindow;
@@ -19,6 +20,7 @@ const createWindow = () => {
19
20
mainWindow.loadFile('index.html');
21
};
22
23
+console.log(app)
24
app.on('ready', createWindow);
25
26
app.on('window-all-closed', () => {
0 commit comments