fix: remove inline onerror from skin/cape images in template
All checks were successful
CI / lint (push) Successful in 16s
CI / docker (push) Successful in 1m10s
CI / test (push) Successful in 40s
CI / build (push) Successful in 17s

Inline onerror was firing on empty src, hiding images before JS could load them
This commit is contained in:
2026-06-06 20:27:18 +03:00
parent b8c136878b
commit f4f7a52749

View File

@@ -21,7 +21,7 @@
<div class="card">
<h3>Скин</h3>
<div id="currentSkin" class="text-center" style="margin-bottom:1rem">
<img id="skinImg" src="" alt="Скин" style="width:120px;height:160px;image-rendering:pixelated;background:var(--surface-light);border-radius:var(--radius-sm)" onerror="this.style.display='none'">
<img id="skinImg" src="" alt="Скин" style="width:120px;height:160px;image-rendering:pixelated;background:var(--surface-light);border-radius:var(--radius-sm)">
<p class="muted text-sm mt-1" id="noSkinMsg">Скин не загружен</p>
</div>
<div id="alertSkin" class="alert"></div>
@@ -37,7 +37,7 @@
<div class="card">
<h3>Плащ</h3>
<div id="currentCape" class="text-center" style="margin-bottom:1rem">
<img id="capeImg" src="" alt="Плащ" style="width:100px;height:160px;image-rendering:pixelated;background:var(--surface-light);border-radius:var(--radius-sm)" onerror="this.style.display='none'">
<img id="capeImg" src="" alt="Плащ" style="width:100px;height:160px;image-rendering:pixelated;background:var(--surface-light);border-radius:var(--radius-sm)">
<p class="muted text-sm mt-1" id="noCapeMsg">Плащ не загружен</p>
</div>
<div id="alertCape" class="alert"></div>