diff --git a/node_run/child.js b/node_run/child.js index 29f6417..6af0562 100644 --- a/node_run/child.js +++ b/node_run/child.js @@ -50,7 +50,10 @@ process.on('message', ([mode, name]) => { window.resolve = (...args) => { process.send(args); window.close(); - } + }; + window.output = (...message) => { + console.log('page:', message); + }; } }); } catch (e) {