Update index.js

This commit is contained in:
booploops 2021-12-04 13:47:07 -08:00
parent 6e5fc7fb0b
commit d129ac86ce

View file

@ -215,7 +215,7 @@ const app = new Vue({
if(typeof downloaded.next == "undefined") { if(typeof downloaded.next == "undefined") {
console.log("downloaded.next is undefined") console.log("downloaded.next is undefined")
} }
if (downloaded.meta.total > library.length || typeof downloaded.meta.next != "undefined") { if (downloaded.meta.total > library.length && typeof downloaded.meta.next != "undefined") {
console.log(`downloading next chunk - ${library.length} songs so far`) console.log(`downloading next chunk - ${library.length} songs so far`)
downloadChunk() downloadChunk()
} else { } else {