mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 05:08:26 +02:00
Minor fixes
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user