electron/spec/fixtures/crash-cases/fs-promises-renderer-crash/index.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
293 B
HTML
Raw Normal View History

<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>