mirror of
https://github.com/BlossomiShymae/clean-cuts.git
synced 2025-12-06 10:10:47 +01:00
Fix onerror loading
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user