2023-08-28 11:23:10 +00:00
|
|
|
const { contextBridge, ipcRenderer } = require('electron/renderer')
|
2022-09-26 14:19:58 +00:00
|
|
|
|
|
|
|
contextBridge.exposeInMainWorld('electronAPI', {
|
2023-08-29 19:52:16 +00:00
|
|
|
cancelBluetoothRequest: () => ipcRenderer.send('cancel-bluetooth-request'),
|
|
|
|
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
|
|
|
})
|