Initial commit
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
const { contextBridge, ipcRenderer } = require('electron');
|
||||
|
||||
contextBridge.exposeInMainWorld('electronAPI', {
|
||||
openFileDialog: () => ipcRenderer.invoke('open-file-dialog'),
|
||||
readFile: (filePath) => ipcRenderer.invoke('read-file', filePath)
|
||||
});
|
||||
Reference in New Issue
Block a user