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