mirror of
https://github.com/colanode/colanode.git
synced 2025-12-28 16:06:37 +01:00
Open devtools only in debug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user