9 lines
No EOL
271 B
JavaScript
9 lines
No EOL
271 B
JavaScript
const { contextBridge, ipcRenderer } = require('electron');
|
|
|
|
|
|
contextBridge.exposeInMainWorld('Native', {
|
|
restart: () => ipcRenderer.send('cr'),
|
|
set: c => ipcRenderer.send('cs', c),
|
|
get: () => ipcRenderer.sendSync('cg'),
|
|
openFile: () => ipcRenderer.send('of')
|
|
}); |