Fix mishandled @error in stillImage
This commit is contained in:
parent
448317338e
commit
5974dfebfb
3 changed files with 10 additions and 2 deletions
|
@ -24,6 +24,9 @@ const StillImage = {
|
|||
canvas.width = width
|
||||
canvas.height = height
|
||||
canvas.getContext('2d').drawImage(this.$refs.src, 0, 0, width, height)
|
||||
},
|
||||
onError () {
|
||||
this.imageLoadError && this.imageLoadError()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue