summaryrefslogtreecommitdiffstats
path: root/assets/js/watch.js
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2019-07-20 20:33:44 -0500
committerOmar Roth <omarroth@protonmail.com>2019-07-20 20:33:44 -0500
commitd034fecc89809421fc198ed60d39debfacf20652 (patch)
tree45d7e880699b49fe8e6f6d9d15f3c0172923fe66 /assets/js/watch.js
parentf18d8229c0f1cdb32d99564ea966bd38882f2998 (diff)
downloadinvidious-d034fecc89809421fc198ed60d39debfacf20652.tar.gz
invidious-d034fecc89809421fc198ed60d39debfacf20652.tar.bz2
invidious-d034fecc89809421fc198ed60d39debfacf20652.zip
Remove default arguments from function definitions
Diffstat (limited to 'assets/js/watch.js')
-rw-r--r--assets/js/watch.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/assets/js/watch.js b/assets/js/watch.js
index 2f027b1a..05e3b7e2 100644
--- a/assets/js/watch.js
+++ b/assets/js/watch.js
@@ -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) {