Update URLs

This commit is contained in:
redphx 2024-06-09 15:56:32 +07:00
parent b780e4e63b
commit 902918d7fb
3 changed files with 5 additions and 7 deletions

View File

@ -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);

View File

@ -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<HTMLElement>('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',
});

View File

@ -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;