try to catch download.next

This commit is contained in:
vapormusic 2022-01-10 19:24:57 +07:00
parent 405e65e9ee
commit 0fd57fdff7

View file

@ -1568,9 +1568,13 @@ const app = new Vue({
processChunk(response) processChunk(response)
}) })
} else { } else {
if (downloaded.next != null && typeof downloaded.next === "function") {
downloaded.next("", params, {includeResponseMeta: !0}).then((response) => { downloaded.next("", params, {includeResponseMeta: !0}).then((response) => {
processChunk(response) processChunk(response)
}) }) } else {
console.log("Download next", downloaded.next)
}
} }
} }
@ -1644,9 +1648,12 @@ const app = new Vue({
processChunk(response) processChunk(response)
}) })
} else { } else {
if (downloaded.next != null && typeof downloaded.next === "function") {
downloaded.next("", params, {includeResponseMeta: !0}).then((response) => { downloaded.next("", params, {includeResponseMeta: !0}).then((response) => {
processChunk(response) processChunk(response)
}) }) } else {
console.log("Download next", downloaded.next)
}
} }
} }
@ -1721,9 +1728,13 @@ const app = new Vue({
processChunk(response) processChunk(response)
}) })
} else { } else {
downloaded.next("", "artists", {includeResponseMeta: !0}).then((response) => { if (downloaded.next != null && typeof downloaded.next === "function") {
processChunk(response) downloaded.next("", "artists", {includeResponseMeta: !0}).then((response) => {
}) processChunk(response)
}) } else {
console.log("Download next", downloaded.next)
}
} }
} }