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

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