summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortamaina <tamaina@hotmail.co.jp>2020-05-26 15:04:44 +0900
committertamaina <tamaina@hotmail.co.jp>2020-05-26 15:04:44 +0900
commit886766cca5a822ea9ad1b2b8b2c00eab37bbc109 (patch)
tree7fba32f41f05bf190eeebe6ea88c9c6ab5c7cfcc /src
parentcapture readAllNotifications (diff)
downloadsharkey-886766cca5a822ea9ad1b2b8b2c00eab37bbc109.tar.gz
sharkey-886766cca5a822ea9ad1b2b8b2c00eab37bbc109.tar.bz2
sharkey-886766cca5a822ea9ad1b2b8b2c00eab37bbc109.zip
fix
Diffstat (limited to 'src')
-rw-r--r--src/client/components/notification.vue6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/components/notification.vue b/src/client/components/notification.vue
index 3c6b8524ea..4fde7d3748 100644
--- a/src/client/components/notification.vue
+++ b/src/client/components/notification.vue
@@ -112,8 +112,10 @@ export default Vue.extend({
},
beforeDestroy() {
- if (!this.notification.isRead) this.readObserver.unobserve(this.$el);
- this.connection.dispose();
+ if (!this.notification.isRead) {
+ this.readObserver.unobserve(this.$el);
+ this.connection.dispose();
+ }
},
methods: {