This commit is contained in:
redphx
2024-12-05 17:10:39 +07:00
parent c836e33f7b
commit 9199351af1
207 changed files with 9833 additions and 6953 deletions

3
src/utils/user-agent.ts Normal file → Executable file
View File

@@ -1,5 +1,6 @@
import { UserAgentProfile } from "@enums/user-agent";
import { BX_FLAGS } from "./bx-flags";
import { StorageKey } from "@/enums/pref-keys";
type UserAgentConfig = {
profile: UserAgentProfile,
@@ -18,7 +19,7 @@ if (!!(window as any).chrome || window.navigator.userAgent.includes('Chrome')) {
}
export class UserAgent {
static readonly STORAGE_KEY = 'better_xcloud_user_agent';
static readonly STORAGE_KEY = StorageKey.USER_AGENT;
static #config: UserAgentConfig;
static #isMobile: boolean | null = null;