Skip to content

Commit

Permalink
fix: devtools won't open in new window
Browse files Browse the repository at this point in the history
  • Loading branch information
scientificworld committed Dec 28, 2024
1 parent 04446c4 commit bc623b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main_dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const createWindow = () => {
});
require("@electron/remote/main").enable(new_win.webContents);
new_win.loadURL(url);
new_win.webContents.openDevTools();
});
win.webContents.openDevTools();
};
Expand All @@ -66,4 +67,4 @@ ipcMain.on("ime_setToInputMode", () => {

ipcMain.on("ime_getCurrentStatus", (event) => {
event.returnValue = CurrentStatusOfIME;
});
});

0 comments on commit bc623b4

Please sign in to comment.