diff --git a/site/source/entries/entry-iframe.ts b/site/source/entries/entry-iframe.ts index 3b0176b9d..62597c050 100644 --- a/site/source/entries/entry-iframe.ts +++ b/site/source/entries/entry-iframe.ts @@ -102,6 +102,10 @@ links.innerHTML = ` ` +if (script.parentElement?.tagName === 'HEAD') { + document.body.appendChild(iframe) + document.body.appendChild(links) +} script.before(iframe) script.before(links)