1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2025-02-06 20:33:33 +01:00

fix: Clear local timeline after destroy

This commit is contained in:
AkiraFukushima 2018-04-17 00:45:55 +09:00
parent 14cabecaa3
commit 5086051c5e

View File

@ -42,6 +42,7 @@ export default {
this.$store.dispatch('TimelineSpace/Contents/Local/stopLocalStreaming')
},
destroyed () {
this.$store.commit('TimelineSpace/Contents/Local/updateTimeline', [])
if (document.getElementById('scrollable') !== undefined && document.getElementById('scrollable') !== null) {
document.getElementById('scrollable').removeEventListener('scroll', this.onScroll)
}