Only wrap iframes that don't specify their own height
This commit is contained in:
parent
65b508ffaa
commit
e183a5406c
|
@ -333,6 +333,9 @@ private extension ArticleRenderer {
|
|||
var init = {
|
||||
wrapFrames: function () {
|
||||
document.querySelectorAll("iframe").forEach(element => {
|
||||
if (element.height > 0 || parseInt(element.style.height) > 0)
|
||||
return;
|
||||
|
||||
var wrapper = document.createElement("div");
|
||||
wrapper.classList.add("iframeWrap");
|
||||
element.parentNode.insertBefore(wrapper, element);
|
||||
|
|
Loading…
Reference in New Issue