From 902918d7fb80bd2979532f23242a385ea9d71de1 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sun, 9 Jun 2024 15:56:32 +0700 Subject: [PATCH] Update URLs --- dist/better-xcloud.user.js | 5 ++--- src/modules/ui/global-settings.ts | 6 +++--- src/utils/global.ts | 1 - 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/dist/better-xcloud.user.js b/dist/better-xcloud.user.js index 9c20286..26b652c 100644 --- a/dist/better-xcloud.user.js +++ b/dist/better-xcloud.user.js @@ -105,7 +105,6 @@ class UserAgent { // src/utils/global.ts var SCRIPT_VERSION = "4.7.1-beta"; -var SCRIPT_HOME = "https://github.com/redphx/better-xcloud"; var AppInterface = window.AppInterface; UserAgent.init(); var userAgent = window.navigator.userAgent.toLowerCase(); @@ -8566,7 +8565,7 @@ function setupSettingsUi() { let $updateAvailable; const $wrapper = CE("div", { class: "bx-settings-wrapper" }, CE("div", { class: "bx-settings-title-wrapper" }, CE("a", { class: "bx-settings-title", - href: SCRIPT_HOME, + href: "https://github.com/redphx/better-xcloud/releases", target: "_blank" }, "Better xCloud " + SCRIPT_VERSION), createButton({ icon: BxIcon.QUESTION, @@ -8576,7 +8575,7 @@ function setupSettingsUi() { }))); $updateAvailable = CE("a", { class: "bx-settings-update bx-gone", - href: "https://github.com/redphx/better-xcloud/releases", + href: "https://github.com/redphx/better-xcloud/releases/latest", target: "_blank" }); $wrapper.appendChild($updateAvailable); diff --git a/src/modules/ui/global-settings.ts b/src/modules/ui/global-settings.ts index 7aad8e9..231ffce 100644 --- a/src/modules/ui/global-settings.ts +++ b/src/modules/ui/global-settings.ts @@ -1,4 +1,4 @@ -import { STATES, AppInterface, SCRIPT_HOME, SCRIPT_VERSION } from "@utils/global"; +import { STATES, AppInterface, SCRIPT_VERSION } from "@utils/global"; import { CE, createButton, ButtonStyle } from "@utils/html"; import { BxIcon } from "@utils/bx-icon"; import { getPreferredServerRegion } from "@utils/region"; @@ -130,7 +130,7 @@ export function setupSettingsUi() { CE('div', {'class': 'bx-settings-title-wrapper'}, CE('a', { 'class': 'bx-settings-title', - 'href': SCRIPT_HOME, + 'href': 'https://github.com/redphx/better-xcloud/releases', 'target': '_blank', }, 'Better xCloud ' + SCRIPT_VERSION), createButton({ @@ -143,7 +143,7 @@ export function setupSettingsUi() { ); $updateAvailable = CE('a', { 'class': 'bx-settings-update bx-gone', - 'href': 'https://github.com/redphx/better-xcloud/releases', + 'href': 'https://github.com/redphx/better-xcloud/releases/latest', 'target': '_blank', }); diff --git a/src/utils/global.ts b/src/utils/global.ts index 38b5b71..5b7d8c9 100644 --- a/src/utils/global.ts +++ b/src/utils/global.ts @@ -1,7 +1,6 @@ import { UserAgent } from "./user-agent"; export const SCRIPT_VERSION = Bun.env.SCRIPT_VERSION!; -export const SCRIPT_HOME = 'https://github.com/redphx/better-xcloud'; export const AppInterface = window.AppInterface;