7 lines
241 B
JavaScript
7 lines
241 B
JavaScript
|
const { contextBridge, ipcRenderer } = require('electron/renderer')
|
||
|
|
||
|
contextBridge.exposeInMainWorld('electronAPI', {
|
||
|
openHomeDir: () => ipcRenderer.send('open-home-dir'),
|
||
|
openExternal: (url) => ipcRenderer.send('open-external', url)
|
||
|
})
|