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:
parent
5a4ca976bd
commit
957dc4da9a
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue