mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-02 16:23:48 +03:00
fix: open dev tools on right window
This commit is contained in:
parent
0c8bccc6f3
commit
59a32c7189
@ -128,7 +128,8 @@ export class WindowManager {
|
|||||||
this.mainWindow.removeMenu();
|
this.mainWindow.removeMenu();
|
||||||
|
|
||||||
this.mainWindow.on("ready-to-show", () => {
|
this.mainWindow.on("ready-to-show", () => {
|
||||||
if (!app.isPackaged) WindowManager.mainWindow?.webContents.openDevTools();
|
if (!app.isPackaged || isStaging)
|
||||||
|
WindowManager.mainWindow?.webContents.openDevTools();
|
||||||
WindowManager.mainWindow?.show();
|
WindowManager.mainWindow?.show();
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -173,9 +174,7 @@ export class WindowManager {
|
|||||||
|
|
||||||
authWindow.removeMenu();
|
authWindow.removeMenu();
|
||||||
|
|
||||||
if (!app.isPackaged || isStaging) {
|
if (!app.isPackaged) authWindow.webContents.openDevTools();
|
||||||
authWindow.webContents.openDevTools();
|
|
||||||
}
|
|
||||||
|
|
||||||
authWindow.loadURL(
|
authWindow.loadURL(
|
||||||
`${import.meta.env.MAIN_VITE_AUTH_URL}${page}?${searchParams.toString()}`
|
`${import.meta.env.MAIN_VITE_AUTH_URL}${page}?${searchParams.toString()}`
|
||||||
|
@ -88,7 +88,8 @@ export const getDownloadersForUri = (uri: string) => {
|
|||||||
if (uri.startsWith("https://pixeldrain.com")) return [Downloader.PixelDrain];
|
if (uri.startsWith("https://pixeldrain.com")) return [Downloader.PixelDrain];
|
||||||
if (uri.startsWith("https://qiwi.gg")) return [Downloader.Qiwi];
|
if (uri.startsWith("https://qiwi.gg")) return [Downloader.Qiwi];
|
||||||
if (uri.startsWith("https://datanodes.to")) return [Downloader.Datanodes];
|
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)))
|
if (realDebridHosts.some((host) => uri.startsWith(host)))
|
||||||
return [Downloader.RealDebrid];
|
return [Downloader.RealDebrid];
|
||||||
|
Loading…
Reference in New Issue
Block a user