mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
fixed video not showing after reconnect
This commit is contained in:
@ -49,7 +49,7 @@ export const mutations = mutationTree(state, {
|
||||
state.emotes = emotes
|
||||
},
|
||||
|
||||
clear(state) {
|
||||
reset(state) {
|
||||
state.emotes = {}
|
||||
state.history = []
|
||||
},
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { getterTree, mutationTree, actionTree } from 'typed-vuex'
|
||||
import { get, set } from '~/utils/localstorage'
|
||||
import { accessor } from '~/store'
|
||||
|
||||
export const namespaced = true
|
||||
|
||||
|
@ -35,7 +35,7 @@ export const mutations = mutationTree(state, {
|
||||
state.clipboard = clipboard
|
||||
},
|
||||
|
||||
clear(state) {
|
||||
reset(state) {
|
||||
state.id = ''
|
||||
state.clipboard = ''
|
||||
},
|
||||
|
@ -62,7 +62,7 @@ export const mutations = mutationTree(state, {
|
||||
connected: false,
|
||||
}
|
||||
},
|
||||
clear(state) {
|
||||
reset(state) {
|
||||
state.members = {}
|
||||
},
|
||||
})
|
||||
|
@ -111,9 +111,15 @@ export const mutations = mutationTree(state, {
|
||||
state.tracks = state.tracks.filter((_, i) => i !== index)
|
||||
},
|
||||
|
||||
clear(state) {
|
||||
reset(state) {
|
||||
state.index = -1
|
||||
state.tracks = []
|
||||
state.streams = []
|
||||
state.width = 1280
|
||||
state.height = 720
|
||||
state.horizontal = 16
|
||||
state.vertical = 9
|
||||
state.playing = false
|
||||
state.playable = false
|
||||
},
|
||||
})
|
||||
|
Reference in New Issue
Block a user