From 7dd68919a75cefe62973ba73a67cec04db446395 Mon Sep 17 00:00:00 2001 From: michaelsboost Date: Wed, 13 Mar 2024 23:02:17 -0500 Subject: [PATCH] bug fix --- go/bundle.js | 5 +++++ go/editor.mjs | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/go/bundle.js b/go/bundle.js index 227fa326..f35ba6a5 100644 --- a/go/bundle.js +++ b/go/bundle.js @@ -157649,6 +157649,11 @@ kWExportJSFiles.init();`); // init zooming and panning app.initZoomPan(); + // run preview + run.onclick = () => { + app.updatePreview(autoupdate.checked); + }; + // toggle auto update autoupdate.onchange = () => { run.classList.toggle('hidden', autoupdate.checked); diff --git a/go/editor.mjs b/go/editor.mjs index b5ef80ea..efd9896a 100644 --- a/go/editor.mjs +++ b/go/editor.mjs @@ -1173,6 +1173,11 @@ kWExportJSFiles.init();`); // init zooming and panning app.initZoomPan(); + // run preview + run.onclick = () => { + app.updatePreview(autoupdate.checked); + }; + // toggle auto update autoupdate.onchange = () => { run.classList.toggle('hidden', autoupdate.checked);