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

7 lines
198 B
JavaScript
Raw Normal View History

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