зеркало из https://github.com/electron/electron.git
docs: update bluetooth fiddle example event name to trigger correct event (#35894)
* Fix event type spelling for bluetooth fiddle example * docs: Fix event type spelling for bluetooth documentation fiddle example
This commit is contained in:
Родитель
d8e037e426
Коммит
ff0517be3e
|
@ -2,5 +2,5 @@ const { contextBridge, ipcRenderer } = require('electron')
|
|||
|
||||
contextBridge.exposeInMainWorld('electronAPI', {
|
||||
bluetoothPairingRequest: (callback) => ipcRenderer.on('bluetooth-pairing-request', callback),
|
||||
bluetoothPairingResponse: (response) => ipcRenderer.send('bluetooth-pairing-respnse', response)
|
||||
bluetoothPairingResponse: (response) => ipcRenderer.send('bluetooth-pairing-response', response)
|
||||
})
|
Загрузка…
Ссылка в новой задаче