mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-07 16:44:27 +01:00
10 lines
305 B
JavaScript
10 lines
305 B
JavaScript
const { ipcRenderer, contextBridge } = require('electron');
|
|
|
|
contextBridge.exposeInMainWorld('electron', {
|
|
message: {
|
|
send: (payload) => ipcRenderer.send('message', payload),
|
|
on: (handler) => ipcRenderer.on('message', handler),
|
|
off: (handler) => ipcRenderer.off('message', handler),
|
|
}
|
|
});
|