mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 05:08:26 +02:00
6.0
This commit is contained in:
3
src/utils/user-agent.ts
Normal file → Executable file
3
src/utils/user-agent.ts
Normal file → Executable 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;
|
||||
|
Reference in New Issue
Block a user