14 lines
247 B
JavaScript
14 lines
247 B
JavaScript
|
const { contextBridge, ipcRenderer } = require('electron')
|
||
|
|
||
|
console.info(contextBridge)
|
||
|
|
||
|
let bound = false
|
||
|
try {
|
||
|
contextBridge.exposeInMainWorld('test', {})
|
||
|
bound = true
|
||
|
} catch {
|
||
|
// Ignore
|
||
|
}
|
||
|
|
||
|
ipcRenderer.send('context-bridge-bound', bound)
|