0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch.git synced 2025-01-03 11:20:07 -05:00

#19 fix chat not disconnecting

This commit is contained in:
dragongoose 2023-07-29 20:49:42 -04:00
parent 5a4ca976bd
commit 957dc4da9a
No known key found for this signature in database
GPG key ID: 01397EEC371CDAA5

View file

@ -9,7 +9,6 @@ import { getEndpoint } from '@/mixins'
import type { Badge, ParsedMessage } from '@/assets/types' import type { Badge, ParsedMessage } from '@/assets/types'
import type { VodComment } from '@/types' import type { VodComment } from '@/types'
export default { export default {
props: { props: {
isVod: { isVod: {
@ -60,6 +59,10 @@ export default {
} }
} }
}, },
beforeUnmount() {
this.ws?.close()
this.ws = null
},
methods: { methods: {
getChat() { getChat() {
return this.messages return this.messages