lazy-load evaluation errors

Closes #1362
This commit is contained in:
ajs124
2024-02-16 16:50:33 +01:00
committed by John Ericson
parent 9d8f30affe
commit 99359c251a
10 changed files with 86 additions and 36 deletions

View File

@@ -129,6 +129,12 @@ $(document).ready(function() {
el.addClass("is-local");
}
});
[...document.getElementsByTagName("iframe")].forEach((element) => {
element.contentWindow.addEventListener("DOMContentLoaded", (_) => {
element.style.height = element.contentWindow.document.body.scrollHeight + 'px';
})
})
});
var tabsLoaded = {};