add output to child.js
This commit is contained in:
parent
7658cb7c41
commit
2e670a674d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user