ff0517be3e
* Fix event type spelling for bluetooth fiddle example * docs: Fix event type spelling for bluetooth documentation fiddle example
6 lines
No EOL
306 B
JavaScript
6 lines
No EOL
306 B
JavaScript
const { contextBridge, ipcRenderer } = require('electron')
|
|
|
|
contextBridge.exposeInMainWorld('electronAPI', {
|
|
bluetoothPairingRequest: (callback) => ipcRenderer.on('bluetooth-pairing-request', callback),
|
|
bluetoothPairingResponse: (response) => ipcRenderer.send('bluetooth-pairing-response', response)
|
|
}) |