2017-03-15 11:07:28 +00:00
|
|
|
<html>
|
|
|
|
<body>
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
const {ipcRenderer} = require('electron')
|
|
|
|
let worker = new Worker(`../workers/worker_node.js`)
|
|
|
|
worker.onmessage = function (event) {
|
2022-07-27 09:10:04 +00:00
|
|
|
ipcRenderer.send('worker-result', event.data)
|
2017-03-15 11:07:28 +00:00
|
|
|
worker.terminate()
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|