Add support for Web notifications

This commit is contained in:
Omar Roth
2019-05-05 07:46:01 -05:00
parent b3788bc143
commit 0338fd42e1
22 changed files with 456 additions and 30 deletions

View File

@ -1,4 +1,4 @@
function get_playlist(plid, timeouts = 0) {
function get_playlist(plid, timeouts) {
if (timeouts > 10) {
console.log('Failed to pull playlist');
return;
@ -53,7 +53,7 @@ function get_playlist(plid, timeouts = 0) {
xhr.ontimeout = function () {
console.log('Pulling playlist timed out.');
get_playlist(plid, timeouts + 1);
get_playlist(plid, timeouts++);
}
}