Refactor watch.js
This commit is contained in:
@@ -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 %>');
|
||||
|
||||
Reference in New Issue
Block a user