mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Remove default arguments from function definitions
This commit is contained in:
parent
f18d8229c0
commit
d034fecc89
3 changed files with 12 additions and 5 deletions
|
@ -1,4 +1,6 @@
|
|||
function get_playlist(plid, retries = 5) {
|
||||
function get_playlist(plid, retries) {
|
||||
if (retries == undefined) retries = 5;
|
||||
|
||||
if (retries <= 0) {
|
||||
console.log('Failed to pull playlist');
|
||||
return;
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
var notifications, delivered;
|
||||
|
||||
function get_subscriptions(callback, retries = 5) {
|
||||
function get_subscriptions(callback, retries) {
|
||||
if (retries == undefined) retries = 5;
|
||||
|
||||
if (retries <= 0) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -109,7 +109,8 @@ function number_with_separator(val) {
|
|||
return val;
|
||||
}
|
||||
|
||||
function get_playlist(plid, retries = 5) {
|
||||
function get_playlist(plid, retries) {
|
||||
if (retries == undefined) retries = 5;
|
||||
playlist = document.getElementById('playlist');
|
||||
|
||||
if (retries <= 0) {
|
||||
|
@ -194,7 +195,8 @@ function get_playlist(plid, retries = 5) {
|
|||
xhr.send();
|
||||
}
|
||||
|
||||
function get_reddit_comments(retries = 5) {
|
||||
function get_reddit_comments(retries) {
|
||||
if (retries == undefined) retries = 5;
|
||||
comments = document.getElementById('comments');
|
||||
|
||||
if (retries <= 0) {
|
||||
|
@ -270,7 +272,8 @@ function get_reddit_comments(retries = 5) {
|
|||
xhr.send();
|
||||
}
|
||||
|
||||
function get_youtube_comments(retries = 5) {
|
||||
function get_youtube_comments(retries) {
|
||||
if (retries == undefined) retries = 5;
|
||||
comments = document.getElementById('comments');
|
||||
|
||||
if (retries <= 0) {
|
||||
|
|
Loading…
Reference in a new issue