Add button to open browser devtools

This commit is contained in:
jeffvli
2023-02-08 14:42:13 -08:00
parent 4700772e6d
commit 563a4b3a7c
3 changed files with 36 additions and 1 deletions
+4
View File
@@ -89,6 +89,10 @@ const createWindow = async () => {
mainWindow?.webContents.openDevTools();
});
ipcMain.on('window-dev-tools', () => {
mainWindow?.webContents.openDevTools();
});
ipcMain.on('window-maximize', () => {
mainWindow?.maximize();
});