fix: check skin_hash/cape_hash instead of skin/cape in profile JS
This commit is contained in:
@@ -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'; };
|
||||
|
||||
Reference in New Issue
Block a user