mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-05 20:58:27 +02:00
Add "Suggest settings" feature
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { BxLogger } from "./bx-logger";
|
||||
|
||||
type BxFlags = {
|
||||
CheckForUpdate: boolean;
|
||||
EnableXcloudLogging: boolean;
|
||||
@@ -7,8 +9,12 @@ type BxFlags = {
|
||||
FeatureGates: {[key: string]: boolean} | null,
|
||||
|
||||
DeviceInfo: {
|
||||
deviceType: 'android' | 'android-tv' | 'webos' | 'unknown',
|
||||
deviceType: 'android' | 'android-tv' | 'android-handheld' | 'webos' | 'unknown',
|
||||
userAgent?: string,
|
||||
|
||||
androidInfo?: {
|
||||
board: string,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,4 +41,6 @@ if (!BX_FLAGS.DeviceInfo.userAgent) {
|
||||
BX_FLAGS.DeviceInfo.userAgent = window.navigator.userAgent;
|
||||
}
|
||||
|
||||
BxLogger.info('BxFlags', BX_FLAGS);
|
||||
|
||||
export const NATIVE_FETCH = window.fetch;
|
||||
|
Reference in New Issue
Block a user