[next] Enabled hooks around plugins (#1522)

This commit is contained in:
Andrea Giammarchi
2023-06-12 22:18:55 +02:00
committed by GitHub
parent bb364b0524
commit da544929ac
10 changed files with 138 additions and 19 deletions

View File

@@ -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) => {