mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
mute video if not focused
This commit is contained in:
@ -47,6 +47,11 @@ export const mutations = mutationTree(state, {
|
||||
}
|
||||
},
|
||||
|
||||
setMuted(state, muted: boolean) {
|
||||
state.muted = muted
|
||||
set('mute', muted)
|
||||
},
|
||||
|
||||
toggleMute(state) {
|
||||
state.muted = !state.muted
|
||||
set('mute', state.muted)
|
||||
|
Reference in New Issue
Block a user