mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: adding auth window
This commit is contained in:
parent
884ba47b9b
commit
71d79a4a15
9 changed files with 51 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue