Fix settimeout calling function immediately.

This commit is contained in:
voussoir 2021-06-04 18:45:34 -07:00
parent 975408227b
commit 40d618dd85
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -54,6 +54,6 @@ function get_all_albums_callback(response)
album_autocomplete.on_pageload = album_autocomplete.on_pageload =
function on_pageload() function on_pageload()
{ {
setTimeout(api.albums.get_all_albums(album_autocomplete.get_all_albums_callback), 0); setTimeout(() => api.albums.get_all_albums(album_autocomplete.get_all_albums_callback), 0);
} }
document.addEventListener("DOMContentLoaded", album_autocomplete.on_pageload); document.addEventListener("DOMContentLoaded", album_autocomplete.on_pageload);