🐛 The loading spinner isn't aligned with the wallpaper on mobile

This commit is contained in:
2024-04-21 23:08:34 +02:00
parent eecb46e4b8
commit b3330abecc
2 changed files with 28 additions and 28 deletions

View File

@@ -33,19 +33,19 @@
import init from "{base_path}/assets/dioxus/beau-gosse-du-92.js";
// Ensure that everything needed to render preloader has been downloaded
// before fetching the app wasm bundle.
// before fetching the wasm bundle.
window.onload=function() {
init("{base_path}/assets/dioxus/beau-gosse-du-92_bg.wasm").then(
wasm => {
const preloader = document.getElementById("preloader");
if (preloader !== undefined) {
preloader.style.display = 'none';
}
if (preloader !== undefined) {
preloader.style.display = 'none';
}
if (wasm.__wbindgen_start == undefined) {
wasm.main();
if (wasm.__wbindgen_start == undefined) {
wasm.main();
}
}
}
);
}
</script>