2022-03-16 17:54:45 +00:00
|
|
|
<html>
|
|
|
|
<body>
|
|
|
|
<script>
|
2023-06-15 14:42:27 +00:00
|
|
|
const fs = require('node:fs');
|
2022-03-16 17:54:45 +00:00
|
|
|
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>
|