From 31b7a60bded8609e9ac72755b2eb69f24637bd13 Mon Sep 17 00:00:00 2001 From: Jeffrey Holland Date: Thu, 21 Aug 2025 13:56:24 +0200 Subject: [PATCH] Revert to original `isDev` function --- apps/desktop/src/utils.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/apps/desktop/src/utils.ts b/apps/desktop/src/utils.ts index 2e32a82df55..de5cd2daebc 100644 --- a/apps/desktop/src/utils.ts +++ b/apps/desktop/src/utils.ts @@ -20,12 +20,11 @@ export function invokeMenu(menu: RendererMenuItem[]) { } export function isDev() { - // // ref: https://github.com/sindresorhus/electron-is-dev - // if ("ELECTRON_IS_DEV" in process.env) { - // return parseInt(process.env.ELECTRON_IS_DEV, 10) === 1; - // } - // return process.defaultApp || /node_modules[\\/]electron[\\/]/.test(process.execPath); - return true; + // ref: https://github.com/sindresorhus/electron-is-dev + if ("ELECTRON_IS_DEV" in process.env) { + return parseInt(process.env.ELECTRON_IS_DEV, 10) === 1; + } + return process.defaultApp || /node_modules[\\/]electron[\\/]/.test(process.execPath); } export function isLinux() {