mirror of
https://github.com/koel/koel
synced 2024-11-27 22:40:26 +00:00
Roll back the previous change
This commit is contained in:
parent
26e57bd643
commit
43ef5cad26
1 changed files with 2 additions and 8 deletions
|
@ -82,14 +82,8 @@ export const playback = {
|
|||
if ('mediaSession' in navigator) {
|
||||
navigator.mediaSession.setActionHandler('play', () => this.resume())
|
||||
navigator.mediaSession.setActionHandler('pause', () => this.pause())
|
||||
navigator.mediaSession.setActionHandler('previoustrack', () => {
|
||||
navigator.mediaSession.playbackState = 'playing'
|
||||
this.playPrev()
|
||||
})
|
||||
navigator.mediaSession.setActionHandler('nexttrack', () => {
|
||||
navigator.mediaSession.playbackState = 'playing'
|
||||
this.playNext()
|
||||
})
|
||||
navigator.mediaSession.setActionHandler('previoustrack', () => this.playPrev())
|
||||
navigator.mediaSession.setActionHandler('nexttrack', () => this.playNext())
|
||||
}
|
||||
|
||||
this.initialized = true
|
||||
|
|
Loading…
Reference in a new issue