mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-21 19:25:35 -05:00
Use registerJSModule when available (#1573)
This commit is contained in:
committed by
GitHub
parent
7813c3f03f
commit
a14e701be4
@@ -1,5 +1,8 @@
|
||||
export const python = { content: "", target: null };
|
||||
export const loadMicroPython = () => ({
|
||||
registerJsModule() {
|
||||
|
||||
},
|
||||
runPython(content) {
|
||||
if (document.currentScript?.target) {
|
||||
python.content = content;
|
||||
|
||||
Reference in New Issue
Block a user