electron/spec/fixtures/api/isolated-fetch-preload.js

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

7 lines
203 B
JavaScript
Raw Normal View History

2018-09-13 16:10:51 +00:00
const { ipcRenderer } = require('electron');
// Ensure fetch works from isolated world origin
fetch('https://localhost:1234').catch(err => {
ipcRenderer.send('isolated-fetch-error', err.message);
});