d78f37ec8f
Co-authored-by: Milan Burda <miburda@microsoft.com>
17 lines
293 B
HTML
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>
|