fix: check skin_hash/cape_hash instead of skin/cape in profile JS
All checks were successful
CI / lint (push) Successful in 16s
CI / test (push) Successful in 41s
CI / build (push) Successful in 17s
CI / docker (push) Successful in 1m13s

This commit is contained in:
2026-06-06 20:36:19 +03:00
parent f4f7a52749
commit f765fecf24

View File

@@ -94,7 +94,7 @@
document.getElementById('profUuid').textContent = data.uuid || savedUuid || '—';
// Skin
if (data.textures && data.textures.skin) {
if (data.textures && data.textures.skin_hash) {
const skinImg = document.getElementById('skinImg');
const noSkinMsg = document.getElementById('noSkinMsg');
skinImg.onerror = function() { this.style.display = 'none'; noSkinMsg.style.display = 'block'; };
@@ -106,7 +106,7 @@
}
// Cape
if (data.textures && data.textures.cape) {
if (data.textures && data.textures.cape_hash) {
const capeImg = document.getElementById('capeImg');
const noCapeMsg = document.getElementById('noCapeMsg');
capeImg.onerror = function() { this.style.display = 'none'; noCapeMsg.style.display = 'block'; };