Minor fixes

This commit is contained in:
redphx
2024-07-30 18:06:40 +07:00
parent 9fad2914ac
commit 361ce057b7
4 changed files with 9 additions and 17 deletions

View File

@@ -1,5 +1,4 @@
import { UserAgentProfile } from "@enums/user-agent";
import { BX_FLAGS } from "./bx-flags";
type UserAgentConfig = {
profile: UserAgentProfile,
@@ -120,11 +119,6 @@ export class UserAgent {
let newUserAgent = UserAgent.get(profile);
// Pretend to be Tizen TV
if (BX_FLAGS.IsSupportedTvBrowser) {
newUserAgent += ` SmartTV ${SMART_TV_UNIQUE_ID}`;
}
// Clear data of navigator.userAgentData, force xCloud to detect browser based on navigator.userAgent
if ('userAgentData' in window.navigator) {
(window.navigator as any).orgUserAgentData = (window.navigator as any).userAgentData;