Skip to content

Commit 12eeb0c

Browse files
committed
fix: electron app launching but not working
1 parent 04c8f65 commit 12eeb0c

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

src-electron/main-window-ipc.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,6 @@ function registerWindowIpcHandlers() {
9696
}
9797
});
9898

99-
// Quit app (for last window scenario)
100-
ipcMain.handle('quit-app', (event, exitCode) => {
101-
const { app } = require('electron');
102-
app.exit(exitCode || 0);
103-
});
104-
10599
// Focus current window and bring to front
106100
ipcMain.handle('focus-window', (event) => {
107101
const win = BrowserWindow.fromWebContents(event.sender);

src-electron/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ async function createWindow() {
3535
// Trust cleanup is handled by registerWindow's closed handler
3636
registerWindow(win, 'main');
3737

38+
// uncomment line below if you want to open dev tools at app start
39+
// win.webContents.openDevTools();
40+
3841
// Load the test page from the http-server
3942
win.loadURL('http://localhost:8000/src/');
4043
}

0 commit comments

Comments
 (0)