mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2025-02-07 04:08:04 -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 { VodComment } from '@/types'
|
||||
|
||||
|
||||
export default {
|
||||
props: {
|
||||
isVod: {
|
||||
|
@ -60,6 +59,10 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
beforeUnmount() {
|
||||
this.ws?.close()
|
||||
this.ws = null
|
||||
},
|
||||
methods: {
|
||||
getChat() {
|
||||
return this.messages
|
||||
|
|
Loading…
Add table
Reference in a new issue