electron/spec/fixtures/sub-frames/preload.js

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

10 lines
262 B
JavaScript
Raw Normal View History

const { ipcRenderer, webFrame } = require('electron');
window.isolatedGlobal = true;
ipcRenderer.send('preload-ran', window.location.href, webFrame.routingId);
ipcRenderer.on('preload-ping', () => {
ipcRenderer.send('preload-pong', webFrame.routingId);
});