X-Git-Url: https://git.kengrimes.com/?p=kengrimes.com%2Ftheme.git;a=blobdiff_plain;f=static%2Fjs%2Fmain.js;h=b0ada37c198ef6463968bd22cf94cae308b821ad;hp=a69935718c0859b101a911601bed4dc0806b6ba0;hb=3fc85e94aaa6f47cf20c6af1bfaf80b9bb6ead2f;hpb=448df86b7a0809257ac01e7cdf0c8002ae05d8e2 diff --git a/static/js/main.js b/static/js/main.js index a699357..b0ada37 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -22,5 +22,5 @@ window.onload = () => { } const resizeIFrame = (iframe) => { iframe.style.height = 0 - iframe.style.height = document.body.scrollHeight + 'px'; + iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px'; }