mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-03 10:47:21 +00:00
Only wrap iframes that don't specify their own height
This commit is contained in:
1 parent
65b508ffaa
commit
e183a5406c
1 file changed
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user