mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07:18 +02:00
Move DEFAULT_FLAGS below ADDITIONAL CODE section
This commit is contained in:
parent
2008806507
commit
6f9ae9a555
@ -17,22 +17,7 @@
|
|||||||
const SCRIPT_VERSION = '3.5.2';
|
const SCRIPT_VERSION = '3.5.2';
|
||||||
const SCRIPT_HOME = 'https://github.com/redphx/better-xcloud';
|
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 AppInterface = window.AppInterface;
|
||||||
|
|
||||||
const BxEvent = {
|
const BxEvent = {
|
||||||
JUMP_BACK_IN_READY: 'bx-jump-back-in-ready',
|
JUMP_BACK_IN_READY: 'bx-jump-back-in-ready',
|
||||||
POPSTATE: 'bx-popstate',
|
POPSTATE: 'bx-popstate',
|
||||||
@ -78,6 +63,20 @@ const BxEvent = {
|
|||||||
|
|
||||||
/* ADDITIONAL CODE */
|
/* 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;
|
let REMOTE_PLAY_SERVER;
|
||||||
|
|
||||||
const ENABLE_NATIVE_MKB_BETA = false;
|
const ENABLE_NATIVE_MKB_BETA = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user