mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
* spec: refactor BrowserWindow module contextIsolation option * spec: check for serialzation in isolated renderers separately
7 lines
198 B
JavaScript
7 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)
|
|
})
|