Correct soundcloud-player reference

This commit is contained in:
Kasper Rynning-Tønnesen
2018-10-23 12:38:23 +02:00
parent 8f985d5da0
commit 74d5f958e5
3 changed files with 3 additions and 1 deletions

View File

@@ -55,7 +55,7 @@ window.addEventListener("load", function() {
try {
window.opener.callback(query_parameters);
} catch(e) {
window.setTimeout(window.opener.SC.connectCallback, 1);
window.setTimeout(window.opener.SC_player.connectCallback, 1);
}
}
});

View File

@@ -607,6 +607,7 @@ var List = {
},
exportToSoundCloud: function(thisSong, i) {
console.log(thisSong, i);
if(thisSong == undefined) {
if(full_playlist.length > 0) {
List.exportToSoundCloud(full_playlist[0], 1);

View File

@@ -975,6 +975,7 @@ function addDynamicListeners() {
soundcloud_window = window.open("/api/oauth#soundcloud=true&nonce=" + nonce, "", "width=600, height=600");*/
SC_player.connect({"display":"page"}).then(function() {
console.log("We export now");
List.exportToSoundCloud();
});
});