From 1e56e7b2a26b62b3ee1b8a03dbb7f7af527b0339 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Wed, 20 Mar 2024 17:56:21 +0700 Subject: [PATCH] Fix loading time box not hidden sometimes --- better-xcloud.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/better-xcloud.user.js b/better-xcloud.user.js index 0f2bb90..60285f8 100644 --- a/better-xcloud.user.js +++ b/better-xcloud.user.js @@ -3960,7 +3960,7 @@ class LoadingScreen { LoadingScreen.#orgWebTitle && (document.title = LoadingScreen.#orgWebTitle); LoadingScreen.#$waitTimeBox && LoadingScreen.#$waitTimeBox.classList.add('bx-gone'); - if (LoadingScreen.#$bgStyle) { + if (getPref(Preferences.UI_LOADING_SCREEN_GAME_ART) && LoadingScreen.#$bgStyle) { const $rocketBg = document.querySelector('#game-stream rect[width="800"]'); $rocketBg && $rocketBg.addEventListener('transitionend', e => { LoadingScreen.#$bgStyle.textContent += ` @@ -11479,7 +11479,7 @@ window.addEventListener(BxEvent.STREAM_LOADING, e => { window.addEventListener(BxEvent.STREAM_STARTING, e => { // Hide loading screen - getPref(Preferences.UI_LOADING_SCREEN_GAME_ART) && LoadingScreen.hide(); + LoadingScreen.hide(); }); window.addEventListener(BxEvent.STREAM_PLAYING, e => {