From f49a12e011ca0db7042e4b4331210b13780c7ffb Mon Sep 17 00:00:00 2001 From: Sypher-X <65622162+Sypher-X@users.noreply.github.com> Date: Wed, 16 Oct 2024 21:41:56 +0100 Subject: [PATCH] Update theme-loader.js --- client/js/theme-loader.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/js/theme-loader.js b/client/js/theme-loader.js index 6ead25b..beb3491 100644 --- a/client/js/theme-loader.js +++ b/client/js/theme-loader.js @@ -18,11 +18,12 @@ applyTheme(theme); const style = document.createElement('style'); - style.textContent = 'body { visibility: hidden; background-image: url(https://i.imgur.com/OqvUONC.png); }'; + style.textContent = 'body { visibility: hidden; }'; document.head.appendChild(style); window.addEventListener('load', function () { document.head.removeChild(style); document.body.style.visibility = 'visible'; + document.body.style.backgroundImage = "url('https://i.imgur.com/OqvUONC.png')"; }); })();