electron/spec/fixtures/apps/libuv-hang/renderer.js

6 lines
189 B
JavaScript

const { run, ipcRenderer } = window.api;
run().then(async () => {
const count = await ipcRenderer.invoke('reload-successful');
if (count < 3) location.reload();
}).catch(console.log);