OpenAsar/src/config/preload.js

9 lines
267 B
JavaScript
Raw Normal View History

2022-03-13 20:12:42 +00:00
const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('Native', {
restart: () => ipcRenderer.send('cr'),
set: c => ipcRenderer.send('cs', c),
get: () => ipcRenderer.sendSync('cg'),
2022-09-28 09:58:07 +00:00
open: () => ipcRenderer.send('of')
2022-03-13 20:12:42 +00:00
});