fix: open dev tools on right window

This commit is contained in:
Chubby Granny Chaser 2025-02-01 20:12:49 +00:00
parent 0c8bccc6f3
commit 59a32c7189
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View File

@ -128,7 +128,8 @@ export class WindowManager {
this.mainWindow.removeMenu();
this.mainWindow.on("ready-to-show", () => {
if (!app.isPackaged) WindowManager.mainWindow?.webContents.openDevTools();
if (!app.isPackaged || isStaging)
WindowManager.mainWindow?.webContents.openDevTools();
WindowManager.mainWindow?.show();
});
@ -173,9 +174,7 @@ export class WindowManager {
authWindow.removeMenu();
if (!app.isPackaged || isStaging) {
authWindow.webContents.openDevTools();
}
if (!app.isPackaged) authWindow.webContents.openDevTools();
authWindow.loadURL(
`${import.meta.env.MAIN_VITE_AUTH_URL}${page}?${searchParams.toString()}`

View File

@ -88,7 +88,8 @@ export const getDownloadersForUri = (uri: string) => {
if (uri.startsWith("https://pixeldrain.com")) return [Downloader.PixelDrain];
if (uri.startsWith("https://qiwi.gg")) return [Downloader.Qiwi];
if (uri.startsWith("https://datanodes.to")) return [Downloader.Datanodes];
if (uri.startsWith("https://www.mediafire.com")) return [Downloader.Mediafire];
if (uri.startsWith("https://www.mediafire.com"))
return [Downloader.Mediafire];
if (realDebridHosts.some((host) => uri.startsWith(host)))
return [Downloader.RealDebrid];