MCPackDecrypt/preload.js

6 lines
231 B
JavaScript
Raw Permalink Normal View History

2023-07-23 12:15:53 +00:00
const {contextBridge, ipcRenderer} = require('electron');
contextBridge.exposeInMainWorld("electron", {
getPacks: () => ipcRenderer.invoke('get-packs'),
pickPath: (inputDir) => ipcRenderer.invoke('pick-path', inputDir),
})