forked from leftypol/leftypol
Fixes Video expanding doesn't work #164, this is probably because the logic always assumed settings menu would have body as parent and with a pagewrap div it doesn't anymore. This now works without options.js enabled
This commit is contained in:
parent
44f99c5f0c
commit
22cc429cf9
1 changed files with 5 additions and 2 deletions
|
@ -218,8 +218,11 @@ function setupVideosIn(element) {
|
||||||
|
|
||||||
onready(function(){
|
onready(function(){
|
||||||
// Insert menu from settings.js
|
// Insert menu from settings.js
|
||||||
if (typeof settingsMenu != "undefined" && typeof Options == "undefined")
|
if (typeof settingsMenu != "undefined" && typeof Options == "undefined") {
|
||||||
document.body.insertBefore(settingsMenu, document.getElementsByTagName("hr")[0]);
|
var firsthr = document.getElementsByTagName("hr")[0];
|
||||||
|
var hrparent = firsthr.parentNode;
|
||||||
|
hrparent.insertBefore(settingsMenu, firsthr);
|
||||||
|
}
|
||||||
|
|
||||||
// Setup Javascript events for videos in document now
|
// Setup Javascript events for videos in document now
|
||||||
setupVideosIn(document);
|
setupVideosIn(document);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue