Autoplay position fix

This commit is contained in:
Kasper Rynning-Tønnesen
2018-08-16 12:56:52 +02:00
parent 8227c5a7e3
commit ef337e9634

View File

@@ -76,7 +76,7 @@ window.addEventListener("message", receiveMessage, false);
window.addEventListener("DOMContentLoaded", function() {
});
window.addEventListener("load", function() {
if(hash.length >= 3 && hash[2] == "autoplay"){
if(hash.length >= 2 && hash.indexOf("autoplay") > 0){
autoplay = true;
Helper.css("#player", "visibility", "hidden");
} else {