Skip to content
This repository has been archived by the owner on Feb 5, 2023. It is now read-only.

Commit

Permalink
fix: NFTItem display (using auto-detect source for video tag)
Browse files Browse the repository at this point in the history
  • Loading branch information
Candinya committed Sep 7, 2021
1 parent d103062 commit 108c7d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/NFT/NFTItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@
width: size + 'px',
height: size + 'px',
}"
:src="imageUrl"
class="nft-item"
autoplay
loop
muted
>
<source :src="imageUrl" :type="`video/${imageUrl.substring(imageUrl.lastIndexOf('.') + 1)}`" />
</video>
/>
</template>

<script lang="ts">
Expand Down

0 comments on commit 108c7d3

Please sign in to comment.