summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-04 18:14:13 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-04 18:14:13 +0900
commitf152e3a2d5e553aa55d0672d6ae6fa3dbdbf8258 (patch)
tree0d31b22c54d5925d9fdf02ad6ee48763631c8b69 /src
parentv3959 (diff)
downloadsharkey-f152e3a2d5e553aa55d0672d6ae6fa3dbdbf8258.tar.gz
sharkey-f152e3a2d5e553aa55d0672d6ae6fa3dbdbf8258.tar.bz2
sharkey-f152e3a2d5e553aa55d0672d6ae6fa3dbdbf8258.zip
Fix bug
Diffstat (limited to 'src')
-rw-r--r--src/web/app/common/views/widgets/slideshow.vue3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/web/app/common/views/widgets/slideshow.vue b/src/web/app/common/views/widgets/slideshow.vue
index df6cb900d3..e9451663e2 100644
--- a/src/web/app/common/views/widgets/slideshow.vue
+++ b/src/web/app/common/views/widgets/slideshow.vue
@@ -81,6 +81,9 @@ export default define({
duration: 1000,
easing: 'linear',
complete: () => {
+ // 既にこのウィジェットがunmountされていたら要素がない
+ if ((this.$refs.slideA as any) == null) return;
+
(this.$refs.slideA as any).style.backgroundImage = img;
anime({
targets: this.$refs.slideB,