1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-09-24 03:18:28 +02:00
upscayl/main/preload.js
2022-08-15 12:36:31 +05:30

5 lines
200 B
JavaScript

const { ipcRenderer, contextBridge } = require("electron");
// 'ipcRenderer' will be available in index.js with the method 'window.electron'
contextBridge.exposeInMainWorld("electron", ipcRenderer);