From 6f9ae9a555d06516c5c53f5dc72345cee6ee394d Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Wed, 17 Apr 2024 08:07:01 +0700 Subject: [PATCH] Move DEFAULT_FLAGS below ADDITIONAL CODE section --- better-xcloud.user.js | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/better-xcloud.user.js b/better-xcloud.user.js index 073b049..cd33e57 100644 --- a/better-xcloud.user.js +++ b/better-xcloud.user.js @@ -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;