2022-09-26 14:19:58 +00:00
|
|
|
const { contextBridge, ipcRenderer } = require('electron')
|
|
|
|
|
|
|
|
contextBridge.exposeInMainWorld('electronAPI', {
|
2023-03-27 13:31:15 +00:00
|
|
|
cancelBluetoothRequest: (callback) => ipcRenderer.send('cancel-bluetooth-request', callback),
|
2022-09-26 14:19:58 +00:00
|
|
|
bluetoothPairingRequest: (callback) => ipcRenderer.on('bluetooth-pairing-request', callback),
|
2022-10-04 19:31:02 +00:00
|
|
|
bluetoothPairingResponse: (response) => ipcRenderer.send('bluetooth-pairing-response', response)
|
2023-04-05 13:42:20 +00:00
|
|
|
})
|