Only add notification event listener after onload

This commit is contained in:
Omar Roth
2019-06-01 17:38:49 -05:00
parent 4e111c84f3
commit e23bab0103
3 changed files with 29 additions and 29 deletions

View File

@ -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;