feat: adding auth window

This commit is contained in:
Chubby Granny Chaser 2024-06-20 13:22:12 +01:00
parent 884ba47b9b
commit 71d79a4a15
No known key found for this signature in database
9 changed files with 51 additions and 10 deletions

View file

@ -8,7 +8,6 @@ import { DownloadManager, logger, WindowManager } from "@main/services";
import { dataSource } from "@main/data-source";
import * as resources from "@locales";
import { userPreferencesRepository } from "@main/repository";
import { HydraApi } from "./services/hydra-api";
const { autoUpdater } = updater;
@ -87,11 +86,7 @@ app.on("second-instance", (_event, commandLine) => {
const [, path] = commandLine.pop()?.split("://") ?? [];
if (path) {
if (path.startsWith("auth")) {
HydraApi.handleExternalAuth(path);
} else {
WindowManager.redirect(path);
}
WindowManager.redirect(path);
}
});