This commit is contained in:
Elvanos 2021-05-19 02:53:45 +02:00
parent 386013e8f3
commit f5bb132e2a
3 changed files with 11 additions and 1 deletions

View file

@ -80,4 +80,4 @@
"npm": ">= 6.13.4",
"yarn": ">= 1.21.1"
}
}
}

View file

@ -38,6 +38,15 @@ function createWindow () {
}
})
mainWindow.webContents.on('did-frame-finish-load', () => {
mainWindow.webContents.once('devtools-opened', () => {
mainWindow.webContents.focus()
})
// open electron debug
console.log('Opening dev tools')
mainWindow.webContents.openDevTools()
})
mainWindow.setMenu(null)
mainWindow.maximize()

1
src/node_fix.d.ts vendored
View file

@ -2,4 +2,5 @@
declare module "fs" {
export class Dir {}
export type OpenDirOptions = {}
export type RmDirOptions = {}
}