summaryrefslogtreecommitdiffstats
path: root/assets/js/embed.js
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2019-06-01 17:38:49 -0500
committerOmar Roth <omarroth@protonmail.com>2019-06-01 17:38:49 -0500
commite23bab0103ee7dccd94b086ee6f48dd8970388dc (patch)
tree033b89d7aa6bcd8f4cc0b1894da61f0366c0a54f /assets/js/embed.js
parent4e111c84f3d5432863c973dbf1d0ea62978b4db7 (diff)
downloadinvidious-e23bab0103ee7dccd94b086ee6f48dd8970388dc.tar.gz
invidious-e23bab0103ee7dccd94b086ee6f48dd8970388dc.tar.bz2
invidious-e23bab0103ee7dccd94b086ee6f48dd8970388dc.zip
Only add notification event listener after onload
Diffstat (limited to 'assets/js/embed.js')
-rw-r--r--assets/js/embed.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/embed.js b/assets/js/embed.js
index 12530fbe..d2116b2e 100644
--- a/assets/js/embed.js
+++ b/assets/js/embed.js
@@ -1,4 +1,4 @@
-function get_playlist(plid, timeouts) {
+function get_playlist(plid, timeouts = 0) {
if (timeouts > 10) {
console.log('Failed to pull playlist');
return;