aboutsummaryrefslogtreecommitdiff
path: root/src/components/still-image/still-image.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2019-02-05 17:17:50 +0200
committershpuld <shp@cock.li>2019-02-05 17:17:50 +0200
commit5974dfebfb764c94acea04b64f072f1d37f4e1c9 (patch)
tree215ee79f4b48a759d2073f7319d930dbdd76319d /src/components/still-image/still-image.js
parent448317338ea585502c0bca03151fc9f3e50aba2e (diff)
Fix mishandled @error in stillImage
Diffstat (limited to 'src/components/still-image/still-image.js')
-rw-r--r--src/components/still-image/still-image.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/still-image/still-image.js b/src/components/still-image/still-image.js
index 8f3a7206..02e98f19 100644
--- a/src/components/still-image/still-image.js
+++ b/src/components/still-image/still-image.js
@@ -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()
}
}
}