mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 16:36:27 +00:00
8 lines
187 B
JavaScript
8 lines
187 B
JavaScript
const {ipcRenderer, contextBridge} = require('electron');
|
|
|
|
contextBridge.exposeInMainWorld('api', {
|
|
doAction: async (arg) => {
|
|
return await ipcRenderer.invoke('main', arg);
|
|
}
|
|
});
|