MicroRepl poc
This commit is contained in:
parent
8e35079fd1
commit
93e8186388
6 changed files with 206 additions and 5 deletions
|
|
@ -92,6 +92,12 @@ class StrudelRepl extends HTMLElement {
|
|||
afterEval: ({ code }) => {
|
||||
// window.location.hash = '#' + code2hash(code);
|
||||
},
|
||||
onUpdateState: (state) => {
|
||||
const event = new CustomEvent('update', {
|
||||
detail: state,
|
||||
});
|
||||
this.dispatchEvent(event);
|
||||
},
|
||||
});
|
||||
// init settings
|
||||
this.editor.updateSettings(this.settings);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue