mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Only wrap iframes that don't specify their own height
This commit is contained in:
@@ -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