cleanup
This commit is contained in:
parent
6221099af8
commit
d5dfbd7aa4
8 changed files with 54 additions and 59 deletions
|
|
@ -84,9 +84,10 @@ export function useReplContext() {
|
|||
pattern: silence,
|
||||
drawTime,
|
||||
drawContext,
|
||||
prebake: async () => Promise.all([modulesLoading, presets,]).then(() => {
|
||||
return evaluate(startupScript ?? '')
|
||||
}),
|
||||
prebake: async () =>
|
||||
Promise.all([modulesLoading, presets]).then(() => {
|
||||
return evaluate(startupScript ?? '');
|
||||
}),
|
||||
onUpdateState: (state) => {
|
||||
setReplState({ ...state });
|
||||
},
|
||||
|
|
@ -202,7 +203,6 @@ export function useReplContext() {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
const handleEvaluate = () => {
|
||||
editorRef.current.evaluate();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue