Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

Open devtools only in debug

Hakan Shehu31220e946b16
diff --git a/desktop/src/main.ts b/desktop/src/main.ts
index 2271caf6..7474e8a8 100644
--- a/desktop/src/main.ts
+++ b/desktop/src/main.ts
@@ -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);