diff --git a/js/dashboard/musicwidget.ts b/js/dashboard/musicwidget.ts index baf105f9c..3a1c2b496 100644 --- a/js/dashboard/musicwidget.ts +++ b/js/dashboard/musicwidget.ts @@ -169,7 +169,7 @@ export class MusicWidget { #loadBackgroundImage($albumArt: JQuery, url: string) { /* Load the image first using an out-of-DOM element and then use the same image - as the background for the element. This is needed because loading the bacground-image + as the background for the element. This is needed because loading the background-image doesn't fire the onload event, making it impossible to timely remove the loading icon. */ $('').attr('src', url).on('load', function() { $(this).remove(); // prevent memory leaks