mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
6 lines
No EOL
290 B
JavaScript
6 lines
No EOL
290 B
JavaScript
const { contextBridge, ipcRenderer } = require('electron/renderer');
|
|
|
|
contextBridge.exposeInMainWorld('electronAPI', {
|
|
bleScan: (callback) => ipcRenderer.on('ble-scan', (_event, data) => callback(data)),
|
|
deviceSelected: (deviceId) => ipcRenderer.send('deviceSelected', deviceId)
|
|
}); |