mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-02 12:06:58 +01:00
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…
x
Reference in New Issue
Block a user