Prepare for webOS & Tizen support

This commit is contained in:
redphx
2024-07-01 17:26:04 +07:00
parent 64d60aedfa
commit c1502b5552
29 changed files with 801 additions and 598 deletions

View File

@@ -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') {