diff --git a/website/src/repl/Repl.jsx b/website/src/repl/Repl.jsx index 67b368ad..b83bbb83 100644 --- a/website/src/repl/Repl.jsx +++ b/website/src/repl/Repl.jsx @@ -123,6 +123,9 @@ export function Repl({ embedded = false }) { setLatestCode(code); window.location.hash = '#' + encodeURIComponent(btoa(code)); }, + onEvalError: (err) => { + setPending(false); + }, onToggle: (play) => !play && cleanupDraw(false), drawContext, });