mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-27 12:51:03 +00:00
chore: sync with main
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydralauncher",
|
"name": "hydralauncher",
|
||||||
"version": "3.7.1",
|
"version": "3.7.2",
|
||||||
"description": "Hydra",
|
"description": "Hydra",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
"author": "Los Broxas",
|
"author": "Los Broxas",
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ import type {
|
|||||||
UserPreferences,
|
UserPreferences,
|
||||||
} from "@types";
|
} from "@types";
|
||||||
import { AuthPage, generateAchievementCustomNotificationTest } from "@shared";
|
import { AuthPage, generateAchievementCustomNotificationTest } from "@shared";
|
||||||
import { appVersion, isStaging } from "@main/constants";
|
import { isStaging } from "@main/constants";
|
||||||
import { logger } from "./logger";
|
import { logger } from "./logger";
|
||||||
|
|
||||||
export class WindowManager {
|
export class WindowManager {
|
||||||
@@ -68,7 +68,7 @@ export class WindowManager {
|
|||||||
// Try to load from remote URL in production
|
// Try to load from remote URL in production
|
||||||
try {
|
try {
|
||||||
await window.loadURL(
|
await window.loadURL(
|
||||||
`https://release-v${this.formatVersionNumber(appVersion)}.${import.meta.env.MAIN_VITE_LAUNCHER_SUBDOMAIN}#/${hash}`
|
`https://release-v${this.formatVersionNumber(app.getVersion())}.${import.meta.env.MAIN_VITE_LAUNCHER_SUBDOMAIN}#/${hash}`
|
||||||
);
|
);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// Fall back to local file if remote URL fails
|
// Fall back to local file if remote URL fails
|
||||||
|
|||||||
Reference in New Issue
Block a user