From cbaf952bf42f431e17802fa81095363f66e183eb Mon Sep 17 00:00:00 2001 From: Antonin ENFRUN Date: Wed, 23 Nov 2022 22:14:20 +0100 Subject: [PATCH] pyscript: Use detail property of micropython-print event As per https://github.com/micropython/micropython/pull/9904 --- pyscript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyscript.js b/pyscript.js index 3375721..28e2c80 100644 --- a/pyscript.js +++ b/pyscript.js @@ -300,7 +300,7 @@ const main = function() { mp_memory = config.mp_memory; } document.addEventListener('micropython-print', function(e) { - Interpreter.print(e.data); + Interpreter.print(e.detail); }, false); let mp_js_startup = Module['onRuntimeInitialized']; Module["onRuntimeInitialized"] = async function() {