mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-12-21 06:27:00 +01:00
Prepare for webOS & Tizen support
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { UserAgentProfile } from "@enums/user-agent";
|
||||
import { deepClone } from "./global";
|
||||
|
||||
type UserAgentConfig = {
|
||||
profile: UserAgentProfile,
|
||||
@@ -45,7 +46,7 @@ export class UserAgent {
|
||||
}
|
||||
|
||||
static updateStorage(profile: UserAgentProfile, custom?: string) {
|
||||
const clonedConfig = structuredClone(UserAgent.#config);
|
||||
const clonedConfig = deepClone(UserAgent.#config);
|
||||
clonedConfig.profile = profile;
|
||||
|
||||
if (typeof custom !== 'undefined') {
|
||||
|
||||
Reference in New Issue
Block a user