MCPackDecrypt/preload.js

6 lines
231 B
JavaScript

const {contextBridge, ipcRenderer} = require('electron');
contextBridge.exposeInMainWorld("electron", {
getPacks: () => ipcRenderer.invoke('get-packs'),
pickPath: (inputDir) => ipcRenderer.invoke('pick-path', inputDir),
})