mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-21 19:25:35 -05:00
21 lines
484 B
JavaScript
21 lines
484 B
JavaScript
export const python = { content: "", target: null };
|
|
export const loadMicroPython = () => ({
|
|
registerJsModule() {
|
|
|
|
},
|
|
runPython(content) {
|
|
if (document.currentScript?.target) {
|
|
python.content = content;
|
|
python.target = document.currentScript.target;
|
|
}
|
|
},
|
|
globals: {
|
|
set(name, value) {
|
|
globalThis[name] = value;
|
|
},
|
|
delete(name) {
|
|
delete globalThis[name];
|
|
},
|
|
},
|
|
});
|