electron/spec/fixtures/api/isolated-fetch-preload.js
Robo 32158ca5dd chore: refactor context isolation spec (#14394)
* spec: refactor BrowserWindow module contextIsolation option

* spec: check for serialzation in isolated renderers separately
2018-09-01 08:51:29 +12:00

6 lines
198 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)
})