Fix skin-canvas visibility

skin-canvas is being hidden due to being part of noscript-hidden class.
Added JS to remove skin-canvas from noscript-hidden class, because if
SkinURL is set the skin-canvas will be drawn. When JS is disabled,
this will not be executed and the canvas will remain hidden.
This commit is contained in:
cat 2025-04-15 05:29:29 +00:00
parent abc8d1e9b8
commit d64ac097d9
No known key found for this signature in database
GPG Key ID: 3D35A815A616B3CB

View File

@ -193,6 +193,11 @@
skinViewer.loadCape({{.CapeURL}});
{{end}}
skinViewer.render();
var elements = document.getElementsByClassName('noscript-hidden');
for (var i = 0; i < elements.length; i++) {
elements[i].classList.remove('noscript-hidden');
}
</script>
{{ end }}