6 lines
167 B
JavaScript
6 lines
167 B
JavaScript
|
const { contextBridge, ipcRenderer } = require('electron')
|
||
|
|
||
|
contextBridge.exposeInMainWorld('electronAPI',{
|
||
|
openFile: () => ipcRenderer.invoke('dialog:openFile')
|
||
|
})
|