Electron-UDS-Relay/preload.js

6 lines
171 B
JavaScript
Raw Normal View History

2023-03-27 14:47:19 +00:00
const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('http', {
request: options => ipcRenderer.invoke('request', options),
});