mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Trying window load listener instead of DOMContentLoaded for embedded
This commit is contained in:
@@ -78,6 +78,10 @@ function receiveMessage(event) {
|
||||
|
||||
window.addEventListener("message", receiveMessage, false);
|
||||
window.addEventListener("DOMContentLoaded", function() {
|
||||
console.log("Loaded DOMContent");
|
||||
})
|
||||
window.addEventListener("load", function() {
|
||||
console.log("Window loaded");
|
||||
if(hash.length >= 3 && hash[2] == "autoplay"){
|
||||
autoplay = true;
|
||||
Helper.css("#player", "visibility", "hidden");
|
||||
|
||||
Reference in New Issue
Block a user