mirror of
https://github.com/unmojang/drasl.git
synced 2025-08-03 02:46:03 -04:00
EnableBackgroundEffect = false should not disable 3d skin preview
This commit is contained in:
parent
07f75ab62c
commit
03ee17c40b
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user