From b20cafaa293038b53af973cc8bcfbcbf8fb24998 Mon Sep 17 00:00:00 2001 From: Dan Marshall Date: Mon, 28 Sep 2026 21:21:01 -0700 Subject: [PATCH] Update playground iframe parameter initialization Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- docs/playground/js/playground.js | 3 ++- packages/playground/src/playground.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/playground/js/playground.js b/docs/playground/js/playground.js index 69d82b1e0..113b3fd2b 100644 --- a/docs/playground/js/playground.js +++ b/docs/playground/js/playground.js @@ -856,7 +856,8 @@ var MakerJsPlayground; document.body.appendChild(iframe); var scripts = ['js/require-iframe.js', '../external/bezier-js/bezier.js', '../external/opentype/opentype.js']; iframe.contentWindow.document.open(); - iframe.contentWindow.document.write('' + scripts.map(function (src) { return ''; }).join() + ''); + iframe.contentWindow.document.write('' + scripts.map(function (src) { return ''; }).join() + ''); + iframe.contentWindow.paramValues = paramValues; iframe.contentWindow.document.close(); } MakerJsPlayground.runCodeFromEditor = runCodeFromEditor; diff --git a/packages/playground/src/playground.ts b/packages/playground/src/playground.ts index cc7f6e14a..4ae918466 100644 --- a/packages/playground/src/playground.ts +++ b/packages/playground/src/playground.ts @@ -1119,7 +1119,8 @@ var scripts = ['js/require-iframe.js', '../external/bezier-js/bezier.js', '../external/opentype/opentype.js']; iframe.contentWindow.document.open(); - iframe.contentWindow.document.write('' + scripts.map(function (src) { return ''; }).join() + ''); + iframe.contentWindow.document.write('' + scripts.map(function (src) { return ''; }).join() + ''); + iframe.contentWindow.paramValues = paramValues; iframe.contentWindow.document.close(); }