File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments