14 lines
253 B
JavaScript
14 lines
253 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);
|