mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-05 20:58:27 +02:00
Move bx-events/exposed/flags files to utils/
This commit is contained in:
25
src/utils/bx-flags.ts
Normal file
25
src/utils/bx-flags.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
type BxFlags = {
|
||||
CheckForUpdate?: boolean;
|
||||
PreloadRemotePlay?: boolean;
|
||||
PreloadUi?: boolean;
|
||||
EnableXcloudLogging?: boolean;
|
||||
SafariWorkaround?: boolean;
|
||||
|
||||
UseDevTouchLayout?: boolean;
|
||||
}
|
||||
|
||||
// Setup flags
|
||||
const DEFAULT_FLAGS: BxFlags = {
|
||||
CheckForUpdate: true,
|
||||
PreloadRemotePlay: true,
|
||||
PreloadUi: false,
|
||||
EnableXcloudLogging: false,
|
||||
SafariWorkaround: true,
|
||||
|
||||
UseDevTouchLayout: false,
|
||||
}
|
||||
|
||||
const BX_FLAGS = Object.assign(DEFAULT_FLAGS, window.BX_FLAGS || {});
|
||||
delete window.BX_FLAGS;
|
||||
|
||||
export { BX_FLAGS }
|
Reference in New Issue
Block a user