diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2020-05-26 15:04:44 +0900 |
|---|---|---|
| committer | tamaina <tamaina@hotmail.co.jp> | 2020-05-26 15:04:44 +0900 |
| commit | 886766cca5a822ea9ad1b2b8b2c00eab37bbc109 (patch) | |
| tree | 7fba32f41f05bf190eeebe6ea88c9c6ab5c7cfcc /src | |
| parent | capture readAllNotifications (diff) | |
| download | sharkey-886766cca5a822ea9ad1b2b8b2c00eab37bbc109.tar.gz sharkey-886766cca5a822ea9ad1b2b8b2c00eab37bbc109.tar.bz2 sharkey-886766cca5a822ea9ad1b2b8b2c00eab37bbc109.zip | |
fix
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/components/notification.vue | 6 |
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: { |