mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Correct soundcloud-player reference
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user