greymass / unicove

Unicove - Antelope Web Wallet 🦄
https://unicove.com
Other
20 stars 11 forks source link

Create a image component #62

Closed aaroncox closed 3 years ago

aaroncox commented 3 years ago

I think it's possible to make a svelte component for images that can use the on:error handler to add a fallback image. We could use this for tokens, since not all token images load for whatever reason, and prevent the broken image icons from appearing.

image

aaroncox commented 3 years ago

Related: https://stackoverflow.com/questions/60877254/svelte-img-error-handler-not-getting-called