diff --git a/electron/main.ts b/electron/main.ts index f1f527c60..0454c4917 100644 --- a/electron/main.ts +++ b/electron/main.ts @@ -61,3 +61,10 @@ protocol.registerSchemesAsPrivileged([ ]) app.whenReady().then(createWindow) + +app.on('before-quit', () => { + // @ts-ignore: import.meta.env does not exist in the types + if (import.meta.env.DEV) { + app.exit() + } +})