eval init script when loading a universe

This commit is contained in:
2023-08-02 18:14:10 +02:00
parent 162cc2fae3
commit d405c3db84
2 changed files with 3 additions and 1 deletions

View File

@ -20,8 +20,8 @@ import {
template_universe,
template_universes,
} from "./AppSettings";
import { tryEvaluate } from "./Evaluator";
import { oneDark } from "@codemirror/theme-one-dark";
import { tryEvaluate } from "./Evaluator";
export class Editor {
@ -373,6 +373,7 @@ export class Editor {
this.closeBuffersModal();
// Focus on the editor
this.view.focus();
tryEvaluate(this, this.universes[this.selected_universe.toString()].init)
}
}
});