fix: cleanup

This commit is contained in:
Felix Roos 2026-02-13 08:36:46 +01:00
parent 23f6ff9bc4
commit 04dcbda9a3
No known key found for this signature in database
2 changed files with 5 additions and 11 deletions

View file

@ -412,10 +412,6 @@ export class StrudelMirror {
setAutocompletionEnabled(enabled) {
this.reconfigureExtension('isAutoCompletionEnabled', enabled);
}
updatePrebake(prebake) {
logger('[repl] prebake updated');
this.prebaked = prebake();
}
updateSettings(settings) {
this.setFontSize(settings.fontSize);
this.setFontFamily(settings.fontFamily);

View file

@ -184,13 +184,11 @@ export function useReplContext() {
}, [_settings]);
useEffect(() => {
const prebake = async () =>
Promise.all([modulesLoading, presets]).then(() => {
if (prebakeScript?.length) {
return evaluateUserPrebake(prebakeScript ?? '');
}
});
editorRef.current?.updatePrebake(prebake);
}, [prebakeScript]);
//