Open devtools only in debug

This commit is contained in:
Hakan Shehu
2024-10-27 09:55:49 +01:00
parent 4d8596ec3f
commit 31220e946b

View File

@@ -40,7 +40,9 @@ const createWindow = async () => {
}
// Open the DevTools.
mainWindow.webContents.openDevTools();
if (MAIN_WINDOW_VITE_DEV_SERVER_URL) {
mainWindow.webContents.openDevTools();
}
subscriptionId = eventBus.subscribe((event) => {
mainWindow.webContents.send('event', event);