From 857b63a9f9cb5a3b1d80cd8cf365f58581f3407e Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sun, 28 Jul 2024 07:25:11 +0700 Subject: [PATCH] Remove unused flags --- src/index.ts | 2 +- src/utils/bx-flags.ts | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/index.ts b/src/index.ts index 9bf1b28..d5ef28c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -114,7 +114,7 @@ document.addEventListener('readystatechange', e => { if (STATES.isSignedIn) { // Preload Remote Play - getPref(PrefKey.REMOTE_PLAY_ENABLED) && BX_FLAGS.PreloadRemotePlay && RemotePlay.preload(); + getPref(PrefKey.REMOTE_PLAY_ENABLED) && RemotePlay.preload(); } else { // Show Settings button in the header when not signed HeaderSection.watchHeader(); diff --git a/src/utils/bx-flags.ts b/src/utils/bx-flags.ts index 8582847..d2c2d08 100644 --- a/src/utils/bx-flags.ts +++ b/src/utils/bx-flags.ts @@ -1,7 +1,5 @@ type BxFlags = Partial<{ CheckForUpdate: boolean; - PreloadRemotePlay: boolean; - PreloadUi: boolean; EnableXcloudLogging: boolean; SafariWorkaround: boolean; @@ -19,8 +17,6 @@ type BxFlags = Partial<{ // Setup flags const DEFAULT_FLAGS: BxFlags = { CheckForUpdate: true, - PreloadRemotePlay: true, - PreloadUi: false, EnableXcloudLogging: false, SafariWorkaround: true,