This commit is contained in:
BrandonPlank 2021-12-24 21:02:41 -05:00
parent 1d2a072358
commit a17f125d6b

View file

@ -343,9 +343,15 @@ const app = new Vue({
// load last played track // load last played track
try { try {
<<<<<<< HEAD
let lastItem = window.localStorage.getItem("currentTrack") let lastItem = window.localStorage.getItem("currentTrack")
let time = window.localStorage.getItem("currentTime") let time = window.localStorage.getItem("currentTime")
let queue = window.localStorage.getItem("currentQueue") let queue = window.localStorage.getItem("currentQueue")
=======
lastItem = window.localStorage.getItem("currentTrack")
time = window.localStorage.getItem("currentTime")
queue = window.localStorage.getItem("currentQueue")
>>>>>>> 7322c71... save last played track, time and queue
if (lastItem != null) { if (lastItem != null) {
lastItem = JSON.parse(lastItem) lastItem = JSON.parse(lastItem)
var kind = lastItem.attributes.playParams.kind; var kind = lastItem.attributes.playParams.kind;
@ -365,9 +371,15 @@ const app = new Vue({
let ids = queue.map ( e => (e.playParams ? e.playParams.id : (e.attributes.playParams ? e.attributes.playParams.id : '') )) let ids = queue.map ( e => (e.playParams ? e.playParams.id : (e.attributes.playParams ? e.attributes.playParams.id : '') ))
if (ids.length > 0) { if (ids.length > 0) {
for (id of ids){ for (id of ids){
<<<<<<< HEAD
try{ try{
app.mk.playLater({songs: [id] }) app.mk.playLater({songs: [id] })
} catch (err){} } catch (err){}
=======
try{
app.mk.playLater({songs: [id] })
} catch (err){}
>>>>>>> 7322c71... save last played track, time and queue
} }
} }
} }
@ -375,7 +387,11 @@ const app = new Vue({
}) })
<<<<<<< HEAD
})},1500) })},1500)
=======
})},1000)
>>>>>>> 7322c71... save last played track, time and queue
} }