Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsboost committed Mar 14, 2024
1 parent 0cc1951 commit 7dd6891
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions go/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 5 additions & 0 deletions go/editor.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7dd6891

Please sign in to comment.