Refactor watch.js

This commit is contained in:
Omar Roth
2019-05-06 09:48:33 -05:00
parent 5e2889e776
commit 2faa2ed1f4
5 changed files with 367 additions and 344 deletions

View File

@@ -71,12 +71,12 @@ function get_playlist(plid, timeouts = 0) {
}
}
}
};
}
xhr.ontimeout = function() {
console.log('Pulling playlist timed out.');
get_playlist(plid, timeouts + 1);
};
}
}
get_playlist('<%= plid %>');