mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Minor fixes
This commit is contained in:
parent
a4a1743062
commit
e2e2322d94
@ -1,8 +1,8 @@
|
||||
import { NATIVE_FETCH, STATES } from "@utils/global";
|
||||
import { STATES } from "@utils/global";
|
||||
import { escapeHtml } from "@utils/html";
|
||||
import { Toast } from "@utils/toast";
|
||||
import { BxEvent } from "@utils/bx-event";
|
||||
import { BX_FLAGS } from "@utils/bx-flags";
|
||||
import { BX_FLAGS, NATIVE_FETCH } from "@utils/bx-flags";
|
||||
import { getPref, PrefKey } from "@utils/preferences";
|
||||
import { t } from "@utils/translation";
|
||||
import { BxLogger } from "@utils/bx-logger";
|
||||
|
@ -23,3 +23,5 @@ export const BX_FLAGS = Object.assign(DEFAULT_FLAGS, window.BX_FLAGS || {});
|
||||
try {
|
||||
delete window.BX_FLAGS;
|
||||
} catch (e) {}
|
||||
|
||||
export const NATIVE_FETCH = window.fetch;
|
||||
|
@ -5,8 +5,6 @@ export const SCRIPT_HOME = 'https://github.com/redphx/better-xcloud';
|
||||
|
||||
export const AppInterface = window.AppInterface;
|
||||
|
||||
export const NATIVE_FETCH = window.fetch;
|
||||
|
||||
UserAgent.init();
|
||||
const userAgent = window.navigator.userAgent.toLowerCase();
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
import { BxEvent } from "@utils/bx-event";
|
||||
import { BX_FLAGS } from "@utils/bx-flags";
|
||||
import { BX_FLAGS, NATIVE_FETCH } from "@utils/bx-flags";
|
||||
import { LoadingScreen } from "@modules/loading-screen";
|
||||
import { PrefKey, getPref } from "@utils/preferences";
|
||||
import { RemotePlay } from "@modules/remote-play";
|
||||
import { StreamBadges } from "@modules/stream/stream-badges";
|
||||
import { TouchController } from "@modules/touch-controller";
|
||||
import { NATIVE_FETCH, STATES } from "@utils/global";
|
||||
import { STATES } from "@utils/global";
|
||||
import { getPreferredServerRegion } from "@utils/region";
|
||||
import { GamePassCloudGallery } from "./gamepass-gallery";
|
||||
import { InputType } from "./bx-exposed";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { NATIVE_FETCH } from "./global";
|
||||
import { NATIVE_FETCH } from "./bx-flags";
|
||||
|
||||
export const SUPPORTED_LANGUAGES = {
|
||||
'en-US': 'English (United States)',
|
||||
@ -364,4 +364,4 @@ export class Translations {
|
||||
|
||||
export const t = Translations.get;
|
||||
|
||||
await Translations.init();
|
||||
Translations.init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user