mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-02 06:26:27 -04:00
console.warn
and info
instead of log
This commit is contained in:
parent
026ea52445
commit
3431a1b1de
6 changed files with 28 additions and 28 deletions
|
@ -5,7 +5,7 @@ function get_playlist(plid, retries) {
|
|||
if (retries === undefined) retries = 5;
|
||||
|
||||
if (retries <= 0) {
|
||||
console.log('Failed to pull playlist');
|
||||
console.warn('Failed to pull playlist');
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -62,12 +62,12 @@ function get_playlist(plid, retries) {
|
|||
};
|
||||
|
||||
xhr.onerror = function () {
|
||||
console.log('Pulling playlist failed... ' + retries + '/5');
|
||||
console.warn('Pulling playlist failed... ' + retries + '/5');
|
||||
setTimeout(function () { get_playlist(plid, retries - 1); }, 1000);
|
||||
};
|
||||
|
||||
xhr.ontimeout = function () {
|
||||
console.log('Pulling playlist failed... ' + retries + '/5');
|
||||
console.warn('Pulling playlist failed... ' + retries + '/5');
|
||||
get_playlist(plid, retries - 1);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue