2023-08-28 05:23:10 -06:00
|
|
|
const { contextBridge, ipcRenderer } = require('electron/renderer')
|
2022-09-26 08:19:58 -06:00
|
|
|
|
|
|
|
contextBridge.exposeInMainWorld('electronAPI', {
|
2023-08-29 13:52:16 -06:00
|
|
|
cancelBluetoothRequest: () => ipcRenderer.send('cancel-bluetooth-request'),
|
|
|
|
bluetoothPairingRequest: (callback) => ipcRenderer.on('bluetooth-pairing-request', () => callback()),
|
2022-10-04 13:31:02 -06:00
|
|
|
bluetoothPairingResponse: (response) => ipcRenderer.send('bluetooth-pairing-response', response)
|
2023-04-05 07:42:20 -06:00
|
|
|
})
|