Skip to content

Commit

Permalink
Fix a typo in a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
paulijar committed Nov 7, 2024
1 parent 1bed609 commit 9cca6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/dashboard/musicwidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class MusicWidget {

#loadBackgroundImage($albumArt: JQuery<HTMLElement>, url: string) {
/* Load the image first using an out-of-DOM <img> 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. */
$('<img/>').attr('src', url).on('load', function() {
$(this).remove(); // prevent memory leaks
Expand Down

0 comments on commit 9cca6a6

Please sign in to comment.