electron/spec/fixtures/pages/worker-fetch.html
trop[bot] 3d139fc424
fix: fetch-dependent interfaces in Web Workers (#42597)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
2024-06-20 15:31:01 -04:00

12 lines
318 B
HTML

<html>
<body>
<script type="text/javascript" charset="utf-8">
const { ipcRenderer } = require('electron')
let worker = new Worker(`../workers/worker_node_fetch.js`)
worker.onmessage = function (event) {
ipcRenderer.send('worker-fetch-result', event.data)
worker.terminate()
}
</script>
</body>
</html>