mirror of
https://github.com/pyscript/pyscript.git
synced 2026-02-13 16:00:37 -05:00
[next] Ditch handy shortcuts for good (#1537)
This commit is contained in:
committed by
GitHub
parent
6284c02032
commit
6df5905b2b
@@ -9,7 +9,7 @@
|
||||
<script type="module" src="../min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="mpy">
|
||||
<script type="micropython">
|
||||
from js import XWorker
|
||||
|
||||
def show_image(event):
|
||||
@@ -19,7 +19,7 @@
|
||||
img.src = event.data
|
||||
document.body.appendChild(img)
|
||||
|
||||
w = XWorker('./matplot.py', **{'type': 'py', 'config': './config.toml'})
|
||||
w = XWorker('./matplot.py', **{'type': 'pyodide', 'config': './config.toml'})
|
||||
w.onmessage = show_image
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user