mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-16 10:32:08 -05:00
17 lines
426 B
JavaScript
17 lines
426 B
JavaScript
var interval;
|
|
function check() {
|
|
if (themeloaded == 1) {
|
|
clearInterval(interval);
|
|
const body = document.querySelector("body");
|
|
body.style.removeProperty("display");
|
|
const html = document.querySelector("body");
|
|
html.style.removeProperty("background-color");
|
|
const bar = document.querySelector("progress");
|
|
bar.remove();
|
|
}
|
|
}
|
|
|
|
window.onload = function () {
|
|
interval = setInterval(check, 50);
|
|
};
|