Skip to content

Commit

Permalink
Merge pull request #216 from SaberA1ter/main
Browse files Browse the repository at this point in the history
feature: 在应用未打包时自动打开 devTools
  • Loading branch information
caoxiemeihao committed Jul 26, 2022
2 parents 858ea14 + 039c272 commit 644a9f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion electron/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ async function createWindow() {
win.loadFile(indexHtml)
} else {
win.loadURL(url)
// win.webContents.openDevTools()
// Open devTool if the app is not packaged
win.webContents.openDevTools()
}

// Test actively push message to the Electron-Renderer
Expand Down

0 comments on commit 644a9f6

Please sign in to comment.