fix play next
This commit is contained in:
parent
e78171b5a0
commit
fe970f6e4b
1 changed files with 4 additions and 1 deletions
|
@ -87,7 +87,10 @@
|
|||
{
|
||||
"name": "Play Next",
|
||||
"action": function() {
|
||||
app.mk.queue.splice(0,0,[new MusicKit.MediaItem(self.item)])
|
||||
const {_mediaItemPlayback: e} = app.mk
|
||||
, {position: s} = app.mk.queue;
|
||||
prependIndex = void 0 === e.nowPlayingItem && 0 === s || s < 0 ? 0 : s + 1
|
||||
app.mk.queue.splice(prependIndex,0,[new MusicKit.MediaItem(self.item)])
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue