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("message", receiveMessage, false);
|
||||||
window.addEventListener("DOMContentLoaded", function() {
|
window.addEventListener("DOMContentLoaded", function() {
|
||||||
|
console.log("Loaded DOMContent");
|
||||||
|
})
|
||||||
|
window.addEventListener("load", function() {
|
||||||
|
console.log("Window loaded");
|
||||||
if(hash.length >= 3 && hash[2] == "autoplay"){
|
if(hash.length >= 3 && hash[2] == "autoplay"){
|
||||||
autoplay = true;
|
autoplay = true;
|
||||||
Helper.css("#player", "visibility", "hidden");
|
Helper.css("#player", "visibility", "hidden");
|
||||||
|
|||||||
Reference in New Issue
Block a user