Move DEFAULT_FLAGS below ADDITIONAL CODE section

This commit is contained in:
redphx 2024-04-17 08:07:01 +07:00
parent 2008806507
commit 6f9ae9a555

View File

@ -17,22 +17,7 @@
const SCRIPT_VERSION = '3.5.2';
const SCRIPT_HOME = 'https://github.com/redphx/better-xcloud';
// Setup flags
const DEFAULT_FLAGS = {
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;
const AppInterface = window.AppInterface;
const BxEvent = {
JUMP_BACK_IN_READY: 'bx-jump-back-in-ready',
POPSTATE: 'bx-popstate',
@ -78,6 +63,20 @@ const BxEvent = {
/* ADDITIONAL CODE */
// Setup flags
const DEFAULT_FLAGS = {
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;
let REMOTE_PLAY_SERVER;
const ENABLE_NATIVE_MKB_BETA = false;