Swapped to array index
This commit is contained in:
parent
c773058328
commit
01429d7ff0
1 changed files with 2 additions and 6 deletions
|
@ -36,10 +36,6 @@ export default class playbackNotifications {
|
||||||
{
|
{
|
||||||
'type': 'button',
|
'type': 'button',
|
||||||
'text': 'Play/Pause'
|
'text': 'Play/Pause'
|
||||||
},
|
|
||||||
{
|
|
||||||
'type': 'button',
|
|
||||||
'text': 'Next'
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
toastXml: `<toast>
|
toastXml: `<toast>
|
||||||
|
@ -64,9 +60,9 @@ export default class playbackNotifications {
|
||||||
this._notification = undefined;
|
this._notification = undefined;
|
||||||
})
|
})
|
||||||
this._notification.on('action', (event: any, action: any) => {
|
this._notification.on('action', (event: any, action: any) => {
|
||||||
if (action === 'Play/Pause') {
|
if (action === 0) {
|
||||||
this._utils.playback.playPause()
|
this._utils.playback.playPause()
|
||||||
} else if (action === 'Next') {
|
} else if (action === 1) {
|
||||||
this._utils.playback.next()
|
this._utils.playback.next()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue