electron/spec/fixtures/api/isolated-fetch-preload.js
2018-09-14 14:57:01 +10:00

6 lines
200 B
JavaScript

const { ipcRenderer } = require('electron')
// Ensure fetch works from isolated world origin
fetch('https://localhost:1234').catch(err => {
ipcRenderer.send('isolated-fetch-error', err.message)
})