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

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

9 lines
235 B
JavaScript
Raw Normal View History

2021-03-22 20:11:03 +00:00
const count = localStorage.getItem('count');
const { run, ipcRenderer } = window.api;
run().then(async () => {
const count = await ipcRenderer.invoke('reload-successful');
if (count < 3) location.reload();
}).catch(console.log);