electron/spec/fixtures/apps/libuv-hang/renderer.js
Samuel Attard 83892ab995
refactor: ensure IpcRenderer is not bridgable (#40330)
* refactor: ensure IpcRenderer is not bridgable

* chore: add notes to breaking-changes

* spec: fix test that bridged ipcrenderer
2023-10-31 17:29:40 -04:00

6 lines
172 B
JavaScript

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