webm: more integration

This commit is contained in:
czaks 2014-04-06 22:28:26 +02:00
parent ccc822d8ab
commit 5c38368e60
2 changed files with 9 additions and 7 deletions

View file

@ -208,9 +208,9 @@ function setupVideosIn(element) {
}
}
if (window.addEventListener) window.addEventListener("load", function(e) {
onready(function(){
// Insert menu from settings.js
if (typeof settingsMenu != "undefined") document.body.insertBefore(settingsMenu, document.body.firstChild);
if (typeof settingsMenu != "undefined") document.body.insertBefore(settingsMenu, document.getElementsByTagName("hr")[0]);
// Setup Javascript events for videos in document now
setupVideosIn(document);
@ -231,5 +231,5 @@ if (window.addEventListener) window.addEventListener("load", function(e) {
});
observer.observe(document.body, {childList: true, subtree: true});
}
}, false);
});