add output to child.js

This commit is contained in:
shenjack 2024-03-19 01:00:25 +08:00
parent 7658cb7c41
commit 2e670a674d
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -50,7 +50,10 @@ process.on('message', ([mode, name]) => {
window.resolve = (...args) => { window.resolve = (...args) => {
process.send(args); process.send(args);
window.close(); window.close();
} };
window.output = (...message) => {
console.log('page:', message);
};
} }
}); });
} catch (e) { } catch (e) {