electron/spec/fixtures/crash-cases/fs-promises-renderer-crash/index.html
Milan Burda d78f37ec8f
refactor: use node scheme imports in spec (#38487)
Co-authored-by: Milan Burda <miburda@microsoft.com>
2023-06-15 10:42:27 -04:00

17 lines
293 B
HTML

<html>
<body>
<script>
const fs = require('node:fs');
const { ipcRenderer } = require('electron');
async function readFile(path) {
await fs.promises.readFile(path);
}
ipcRenderer.on('reload', (_, path) => {
readFile(path);
window.location.reload();
});
</script>
</body>
</html>