Sign in
apache
/
casbin-editor
/
refs/heads/copilot/fix-custom-function-height
/
.
/
preload.js
blob: 09fdee99f160a1462267a3aa4b93dd5c0cecf65f [
file
] [
log
] [
blame
]
const
{
contextBridge
,
ipcRenderer
}
=
require
(
'electron'
);
contextBridge
.
exposeInMainWorld
(
'electronAPI'
,
{
on
:
(
channel
,
callback
)
=>
{
ipcRenderer
.
on
(
channel
,
callback
);
},
send
:
(
channel
,
args
)
=>
{
ipcRenderer
.
send
(
channel
,
args
);
},
});