mirror of
https://github.com/pyscript/pyscript.git
synced 2026-02-13 16:00:37 -05: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("lua-script", {
|
||||
type: "wasmoon", // or just 'lua'
|
||||
async onRuntimeReady(element, wasmoon) {
|
||||
async onRuntimeReady(wasmoon, element) {
|
||||
// Somehow this doesn't work in Wasmoon
|
||||
wasmoon.io.stdout = (message) => {
|
||||
console.log("🌑", wasmoon.type, message);
|
||||
|
||||
Reference in New Issue
Block a user