mirror of
https://github.com/pyscript/pyscript.git
synced 2026-04-11 05:00:28 -04:00
[next] Enabled hooks around plugins (#1522)
This commit is contained in:
committed by
GitHub
parent
bb364b0524
commit
da544929ac
@@ -16,7 +16,7 @@
|
||||
import { registerPlugin } from "@pyscript/core";
|
||||
registerPlugin("mpy-script", {
|
||||
type: "micropython", // or just 'mpy'
|
||||
async onRuntimeReady(element, micropython) {
|
||||
async onRuntimeReady(micropython, element) {
|
||||
console.log(micropython);
|
||||
// Somehow this doesn't work in MicroPython
|
||||
micropython.io.stdout = (message) => {
|
||||
|
||||
Reference in New Issue
Block a user