From cdc2676777cbc0a711f7fc198ac6d634527e2e33 Mon Sep 17 00:00:00 2001 From: raclim <43053081+raclim@users.noreply.github.com> Date: Tue, 31 Oct 2023 10:11:11 -0400 Subject: [PATCH] Revert "fixes of the issue window.p5._report is not defined" --- client/modules/Preview/EmbedFrame.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/modules/Preview/EmbedFrame.jsx b/client/modules/Preview/EmbedFrame.jsx index e445fc152d..43f229fa2d 100644 --- a/client/modules/Preview/EmbedFrame.jsx +++ b/client/modules/Preview/EmbedFrame.jsx @@ -252,7 +252,7 @@ function injectLocalFiles(files, htmlFile, options) { 'PREVIEW_SCRIPTS_URL' )}`; previewScripts.setAttribute('crossorigin', ''); - sketchDoc.body.appendChild(previewScripts); + sketchDoc.head.appendChild(previewScripts); const sketchDocString = `\n${sketchDoc.documentElement.outerHTML}`; scriptOffs = getAllScriptOffsets(sketchDocString);