Commit iniziale
This commit is contained in:
7
preload.js
Normal file
7
preload.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const { contextBridge, ipcRenderer } = require('electron');
|
||||
|
||||
contextBridge.exposeInMainWorld('api', {
|
||||
selectFolder: () => ipcRenderer.invoke('select-folder'),
|
||||
selectZip: () => ipcRenderer.invoke('select-zip'),
|
||||
getConfigPath: () => ipcRenderer.invoke('get-config-path'),
|
||||
});
|
||||
Reference in New Issue
Block a user