News for hackers. Stuff that matters.
Re:MusicKit JS by zodiakzz on Saturday February 22, 2020 @10:45PM (#22394977)
Under the "JavaScript Methods" heading

https://developer.apple.com/documentation/musickitjs#3004817

    music.authorize().then(function() {
        music.api.library.albums.then(function(cloudAlbums) {
            // user's cloudAlbums
        });
    });

    Should be:

    music.authorize().then(function() {
        return music.api.library.albums;
    }).then(function (cloudAlbums) {
        // user's cloudAlbums
    });

There are no comments on this comment yet.