mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: adding deep linking to import sources
This commit is contained in:
parent
fbcacd7c39
commit
6d3b04fc3c
11 changed files with 194 additions and 110 deletions
|
@ -9,7 +9,7 @@ import {
|
|||
shell,
|
||||
} from "electron";
|
||||
import { is } from "@electron-toolkit/utils";
|
||||
import { t } from "i18next";
|
||||
import i18next, { t } from "i18next";
|
||||
import path from "node:path";
|
||||
import icon from "@resources/icon.png?asset";
|
||||
import trayIcon from "@resources/tray-icon.png?asset";
|
||||
|
@ -100,7 +100,13 @@ export class WindowManager {
|
|||
|
||||
authWindow.removeMenu();
|
||||
|
||||
authWindow.loadURL("https://auth.hydra.losbroxas.org/");
|
||||
const searchParams = new URLSearchParams({
|
||||
lng: i18next.language,
|
||||
});
|
||||
|
||||
authWindow.loadURL(
|
||||
`https://auth.hydra.losbroxas.org/?${searchParams.toString()}`
|
||||
);
|
||||
|
||||
authWindow.once("ready-to-show", () => {
|
||||
authWindow.show();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue