attempted audiocontext fix

This commit is contained in:
vapormusic 2022-02-14 09:50:59 +07:00
parent d882e65111
commit aa5d9a4650
2 changed files with 24 additions and 13 deletions

View file

@ -2824,7 +2824,7 @@ const app = new Vue({
[item.attributes.playParams.kind ?? item.type]: item.attributes.playParams.id ?? item.id
}).then(function () {
app.mk.play().then(() => {
const data = JSON.parse(parent.split('listitem-hr')[1] ?? '[]')
let data = JSON.parse(parent.split('listitem-hr')[1] ?? '[]')
let itemsToPlay = {}
let u = data.map(x => x.id)
try {
@ -2849,9 +2849,8 @@ const app = new Vue({
})
})
} else {
const data = JSON.parse(parent.split('listitem-hr')[1] ?? '[]')
let data = JSON.parse(parent.split('listitem-hr')[1] ?? '[]')
let itemsToPlay = {}
let u = data.map(x => x.id)
data.forEach(item => {
if (!itemsToPlay[item.kind]) {
itemsToPlay[item.kind] = []