summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2019-09-03 06:19:17 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-09-03 06:19:17 +0900
commit8abe8042d70de692f3a16e9812e20ad6aae4a0f4 (patch)
tree519d90427c2fb1af6dac9e1f9457636cdf8dd71a /src/client
parent:art: (diff)
downloadsharkey-8abe8042d70de692f3a16e9812e20ad6aae4a0f4.tar.gz
sharkey-8abe8042d70de692f3a16e9812e20ad6aae4a0f4.tar.bz2
sharkey-8abe8042d70de692f3a16e9812e20ad6aae4a0f4.zip
Fix bug
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/common/views/components/reactions-viewer.details.vue4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/app/common/views/components/reactions-viewer.details.vue b/src/client/app/common/views/components/reactions-viewer.details.vue
index 728c58a704..4f1d14b77c 100644
--- a/src/client/app/common/views/components/reactions-viewer.details.vue
+++ b/src/client/app/common/views/components/reactions-viewer.details.vue
@@ -46,6 +46,10 @@ export default Vue.extend({
this.$nextTick(() => {
const popover = this.$refs.popover as any;
+ if (this.source == null) {
+ this.destroyDom();
+ return;
+ }
const rect = this.source.getBoundingClientRect();
const x = rect.left + window.pageXOffset + (this.source.offsetWidth / 2);