OpenAsar/src/config/preload.js

8 lines
229 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-03-13 20:12:42 +00:00
});