mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-05 16:05:20 -04:00
Add support for Web notifications
This commit is contained in:
parent
b3788bc143
commit
0338fd42e1
22 changed files with 456 additions and 30 deletions
|
@ -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++);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue