EnableBackgroundEffect = false should not disable 3d skin preview

This commit is contained in:
Evan Goode 2025-04-04 19:46:05 -04:00
parent 07f75ab62c
commit 03ee17c40b

View File

@ -23,15 +23,16 @@
<body>
<div id="background"></div>
<main id="content">{{ block "content" . }}{{ end }}</main>
{{ if .App.Config.EnableBackgroundEffect }}
<script type="module">
import { background } from "{{.App.PublicURL}}/bundle.js";
background(document.querySelector("#background"));
for (const el of document.querySelectorAll(".noscript-hidden")) {
el.classList.remove("noscript-hidden");
}
</script>
{{ if .App.Config.EnableBackgroundEffect }}
<script type="module">
import { background } from "{{.App.PublicURL}}/bundle.js";
background(document.querySelector("#background"));
</script>
{{ end }}
</body>
</html>