Move bx-events/exposed/flags files to utils/

This commit is contained in:
redphx
2024-04-25 17:57:34 +07:00
parent 51102a7687
commit 293e3c8d73
16 changed files with 19 additions and 19 deletions

25
src/utils/bx-flags.ts Normal file
View 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 }