Fixed player-issue in embed

This commit is contained in:
Kasper Rynning-Tønnesen
2018-08-16 12:54:00 +02:00
parent 171165e0d3
commit c6232aa407

View File

@@ -54,11 +54,6 @@ var Crypt = {
}
};
SC.initialize({
client_id: api_key.soundcloud
}, function() {
});
function receiveMessage(event) {
if(event.data == "parent") {
window.parentWindow = event.source;
@@ -79,7 +74,7 @@ function receiveMessage(event) {
window.addEventListener("message", receiveMessage, false);
window.addEventListener("DOMContentLoaded", function() {
})
});
window.addEventListener("load", function() {
if(hash.length >= 3 && hash[2] == "autoplay"){
autoplay = true;