fix: codemirror reeval

This commit is contained in:
Felix Roos 2023-05-05 15:31:04 +02:00
parent 352e647d37
commit b5b0156e08
2 changed files with 4 additions and 7 deletions

View file

@ -128,6 +128,7 @@ export const flash = (view, ms = 200) => {
export class StrudelMirror {
constructor({ root, initialCode = '', onEvaluate, onStop }) {
this.code = initialCode;
this.view = initEditor({
root,
initialCode,