summaryrefslogtreecommitdiffstats
path: root/assets/js/embed.js
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2019-05-05 07:46:01 -0500
committerOmar Roth <omarroth@protonmail.com>2019-06-01 16:09:17 -0500
commit0338fd42e15ee9803068e6d6eeb04d78b94f321c (patch)
tree44794e8e271b25105fbd79d60643f229940ce653 /assets/js/embed.js
parentb3788bc1431aea47b7a9ffb325984f4a58c21125 (diff)
downloadinvidious-0338fd42e15ee9803068e6d6eeb04d78b94f321c.tar.gz
invidious-0338fd42e15ee9803068e6d6eeb04d78b94f321c.tar.bz2
invidious-0338fd42e15ee9803068e6d6eeb04d78b94f321c.zip
Add support for Web notifications
Diffstat (limited to 'assets/js/embed.js')
-rw-r--r--assets/js/embed.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/js/embed.js b/assets/js/embed.js
index cbf21a58..12530fbe 100644
--- a/assets/js/embed.js
+++ b/assets/js/embed.js
@@ -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++);
}
}