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
No known key found for this signature in database
GPG key ID: B8254FB7EC3D37F2
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;