Show placeholder image if avatar image url is broken

This commit is contained in:
taehoon 2019-02-02 14:11:36 -05:00
parent 815b9d2391
commit 95b735ff72
6 changed files with 39 additions and 3 deletions

View file

@ -1,7 +1,7 @@
<template>
<div class='still-image' :class='{ animated: animated }' >
<canvas ref="canvas" v-if="animated"></canvas>
<img ref="src" :src="src" :referrerpolicy="referrerpolicy" v-on:load="onLoad"/>
<img ref="src" :src="src" :referrerpolicy="referrerpolicy" v-on:load="onLoad" @error="imageLoadError"/>
</div>
</template>