mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-05 20:58:27 +02:00
Minor updates
This commit is contained in:
@@ -14,7 +14,7 @@ type BxFlags = Partial<{
|
||||
|
||||
DeviceInfo: Partial<{
|
||||
deviceType: 'android' | 'android-tv' | 'webos' | 'unknown',
|
||||
userAgent: string,
|
||||
userAgent?: string,
|
||||
}>,
|
||||
}>
|
||||
|
||||
@@ -33,7 +33,6 @@ const DEFAULT_FLAGS: BxFlags = {
|
||||
|
||||
DeviceInfo: {
|
||||
deviceType: 'unknown',
|
||||
userAgent: window.navigator.userAgent,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -42,4 +41,8 @@ try {
|
||||
delete window.BX_FLAGS;
|
||||
} catch (e) {}
|
||||
|
||||
if (!BX_FLAGS.DeviceInfo!.userAgent) {
|
||||
BX_FLAGS.DeviceInfo!.userAgent = window.navigator.userAgent;
|
||||
}
|
||||
|
||||
export const NATIVE_FETCH = window.fetch;
|
||||
|
Reference in New Issue
Block a user