Fix onerror loading

This commit is contained in:
BlossomiShymae
2024-05-02 20:56:05 -05:00
parent fb4393a217
commit fe087a81e3
6 changed files with 6 additions and 6 deletions

View File

@@ -20,7 +20,7 @@
</th>
<td>
<NuxtLink :to="`/champions/overview/${summary.id}`">
<img :src="summary.getIcon({locale: 'default', version: 'latest'})" width="32px" height="32px" loading="lazy" onerror="this.onerror = null; this.src='/img/error.png'"/>
<img :src="summary.getIcon({locale: 'default', version: 'latest'})" width="32px" height="32px" loading="lazy" onerror="this.onerror = null; this.src='/clean-cuts/img/error.png'"/>
</NuxtLink>
</td>
<td>

View File

@@ -21,7 +21,7 @@
</th>
<td>
<NuxtLink class="text-decoration-none text-light" :to="`/items/overview/${item.id}`">
<img class="rounded" :src="item.getIcon('latest')" width="32" height="32" loading="lazy" onerror="this.onerror = null; this.src = '/img/error.png'"/>
<img class="rounded" :src="item.getIcon('latest')" width="32" height="32" loading="lazy" onerror="this.onerror = null; this.src = '/clean-cuts/img/error.png'"/>
</NuxtLink>
</td>
<td>

View File

@@ -18,7 +18,7 @@
{{ rune.id }}
</th>
<td>
<img :src="rune.getIcon('latest')" width="32" height="32" loading="lazy" onerror="this.onerror = null; this.src = '/img/error.png';"/>
<img :src="rune.getIcon('latest')" width="32" height="32" loading="lazy" onerror="this.onerror = null; this.src = '/clean-cuts/img/error.png';"/>
</td>
<td>
{{ rune.name }}

View File

@@ -8,7 +8,7 @@
<div class="d-flex flex-wrap justify-content-around gap-2">
<div class="card bg-transparent bg-screen border-light border-opacity-25" style="max-width: 140px; width: 140px;"
v-for="emote in pages[index]" :key="emote.id">
<img :src="emote.getInventoryIcon('latest')" loading="lazy" onerror="this.onerror = null; this.src='/img/error.png';" />
<img :src="emote.getInventoryIcon('latest')" loading="lazy" onerror="this.onerror = null; this.src='/clean-cuts/img/error.png';" />
<div class="card-body">
<h5 class="card-title">{{ emote.name }}</h5>

View File

@@ -23,7 +23,7 @@
</th>
<td>
<NuxtLink class="text-decoration-none text-light" :to="`/summoner-icons/overview/${icon.id}`">
<img :src="icon.getImage('latest')" width="32" height="32" loading="lazy" onerror="this.onerror = null; this.src='/img/error.png'"/>
<img :src="icon.getImage('latest')" width="32" height="32" loading="lazy" onerror="this.onerror = null; this.src='/clean-cuts/img/error.png'"/>
</NuxtLink>
</td>
<td>

View File

@@ -23,7 +23,7 @@
</th>
<td>
<NuxtLink class="text-decoration-none text-light" :to="`/ward-skins/overview/${skin.id}`">
<img :src="skin.getWardImage('latest')" width="32" height="32" loading="lazy" onerror="this.onerror = null; this.src='/img/error.png'"/>
<img :src="skin.getWardImage('latest')" width="32" height="32" loading="lazy" onerror="this.onerror = null; this.src='/clean-cuts/img/error.png'"/>
</NuxtLink>
</td>
<td>