Skip to content

Commit

Permalink
Update theme-loader.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Sypher-X authored Oct 16, 2024
1 parent 5cda045 commit f49a12e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/js/theme-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')";
});
})();

0 comments on commit f49a12e

Please sign in to comment.