mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
remove users first interaction event.
This commit is contained in:
parent
221dd29968
commit
c2d47108fc
@ -474,7 +474,7 @@
|
||||
|
||||
// unmute on users first interaction
|
||||
if (this.autoplay) {
|
||||
document.addEventListener('click', () => this.unmute(), { once: true })
|
||||
document.addEventListener('click', this.unmute, { once: true })
|
||||
}
|
||||
}
|
||||
|
||||
@ -482,6 +482,9 @@
|
||||
this.observer.disconnect()
|
||||
this.webrtc.disconnect()
|
||||
this.websocket.disconnect()
|
||||
|
||||
// remove users first interaction event
|
||||
document.removeEventListener('click', this.unmute)
|
||||
}
|
||||
|
||||
@Watch('state.screen.size')
|
||||
|
Loading…
Reference in New Issue
Block a user