添加debug启动参数

pull/930/merge
lyswhut 2022-02-25 10:18:57 +08:00
parent a9f9c887b5
commit 9528b10d01
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ module.exports = mainWindow => {
mainWindow.once('ready-to-show', () => {
mainWindow.show()
global.lx_event.mainWindow.readyToShow()
if (global.envParams.cmdParams.debug) global.modules.mainWindow.webContents.openDevTools()
})
mainWindow.on('show', () => {