Testing issues where SC_player not initialized correctly

This commit is contained in:
Kasper Rynning-Tønnesen
2018-10-23 13:06:24 +02:00
parent 8f09eb8d66
commit ceb70a0996
2 changed files with 3 additions and 2 deletions

View File

@@ -636,7 +636,7 @@ var List = {
});
} else if(thisSong == undefined) {
if(full_playlist.length > 0) {
List.exportToSoundCloud(full_playlist[0], 1);
List.exportToSoundCloud(full_playlist[0], 0);
}
} else if(thisSong != undefined && i != undefined) {
var isFound = false;

View File

@@ -973,12 +973,13 @@ function addDynamicListeners() {
window.callback = "";
};
soundcloud_window = window.open("/api/oauth#soundcloud=true&nonce=" + nonce, "", "width=600, height=600");*/
window.SC_player = SC_player;
SC_player.connect({"display":"page"}).then(function() {
Helper.removeClass("#playlist_loader_export", "hide");
Helper.addClass(".soundcloud-export-button", "hide");
Helper.removeClass(".exported-list-container", "hide");
List.exportToSoundCloud();
delete window.SC_player;
});
});