From 12eb76f3712f60c61bcb92ca0915f4cf30f8e734 Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Sat, 1 Feb 2025 19:54:55 +0000 Subject: [PATCH] chore: adding dev tools to staging --- src/main/services/window-manager.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/services/window-manager.ts b/src/main/services/window-manager.ts index 70e7255c..00a24f64 100644 --- a/src/main/services/window-manager.ts +++ b/src/main/services/window-manager.ts @@ -19,6 +19,7 @@ import { db, gamesSublevel, levelKeys } from "@main/level"; import { slice, sortBy } from "lodash-es"; import type { UserPreferences } from "@types"; import { AuthPage } from "@shared"; +import { isStaging } from "@main/constants"; export class WindowManager { public static mainWindow: Electron.BrowserWindow | null = null; @@ -172,7 +173,9 @@ export class WindowManager { authWindow.removeMenu(); - if (!app.isPackaged) authWindow.webContents.openDevTools(); + if (!app.isPackaged || isStaging) { + authWindow.webContents.openDevTools(); + } authWindow.loadURL( `${import.meta.env.MAIN_VITE_AUTH_URL}${page}?${searchParams.toString()}`