From aef879ced0b99ca363356aa0fa511f1eeba7b3a9 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 4 Jul 2024 01:41:21 +0300 Subject: [PATCH] Fix double blur on preloader --- public/css/loader.css | 2 -- public/scripts/loader.js | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/public/css/loader.css b/public/css/loader.css index 1c73c4e3f..6fe9812b6 100644 --- a/public/css/loader.css +++ b/public/css/loader.css @@ -10,8 +10,6 @@ width: 100svw; height: 100svh; background-color: var(--SmartThemeBlurTintColor); - /*for some reason the full screen blur does not work on iOS*/ - backdrop-filter: blur(30px); color: var(--SmartThemeBodyColor); opacity: 1; } diff --git a/public/scripts/loader.js b/public/scripts/loader.js index b991e1ee0..2df5f6edf 100644 --- a/public/scripts/loader.js +++ b/public/scripts/loader.js @@ -1,7 +1,5 @@ import { POPUP_RESULT, POPUP_TYPE, Popup } from './popup.js'; -const ELEMENT_ID = 'loader'; - /** @type {Popup} */ let loaderPopup; @@ -31,7 +29,7 @@ export async function hideLoader() { return new Promise((resolve) => { // Spinner blurs/fades out $('#load-spinner').on('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', function () { - $(`#${ELEMENT_ID}`).remove(); + $('#loader').remove(); // Yoink preloader entirely; it only exists to cover up unstyled content while loading JS // If it's present, we remove it once and then it's gone. yoinkPreloader();