Skip to content

Commit

Permalink
🚑 Fix non-complete webtoon if 2 identical images are present 2 times …
Browse files Browse the repository at this point in the history
…in the list
  • Loading branch information
Xen0Xys committed Sep 30, 2024
1 parent 665d720 commit 4dd47c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/episode/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ onMounted(async() => {
<div id="header" class="flex border-[1px] border-t-0 w-full justify-center">
<h3 class="m-2">{{ episodeInfos.title }}</h3>
</div>
<div v-for="image of episodeImages.slice(0, maxIndex)" :key="episodeImages.indexOf(image)" class="w-full">
<div v-for="(image, index) of episodeImages.slice(0, maxIndex)" :key="index" class="w-full">
<NuxtImg
v-if="episodeImages.indexOf(image) < maxIndex - 1"
v-if="index < maxIndex - 1"
:src="sumToImageUrl(image)"
format="webp"
alt="Episode Image"
class="w-full loading-episode"
@load="removeLoadingClass"
/>
<VisibilityObserver v-else @on-display="increaseMaxIndex">
<VisibilityObserver v-else @on-display="increaseMaxIndex">
<NuxtImg
:src="sumToImageUrl(image)"
alt="Episode Image"
Expand Down

0 comments on commit 4dd47c1

Please sign in to comment.