.
This commit is contained in:
1 parent
db60190e19
commit
843e6435cc
9 files changed
+663
-7
No files matched your search
@@ -35,6 +35,14 @@ const reservationApi: ReservationApi = {
|
||||
ipcRenderer.on('reservation:auto-state', wrapped)
|
||||
return () => ipcRenderer.off('reservation:auto-state', wrapped)
|
||||
},
|
||||
armAutoSalvo: (config) => invoke('reservation:salvo-arm', config),
|
||||
disarmAutoSalvo: () => invoke('reservation:salvo-disarm'),
|
||||
getAutoSalvoState: () => invoke('reservation:salvo-get'),
|
||||
subscribeAutoSalvo: (listener) => {
|
||||
const wrapped = (_event: Electron.IpcRendererEvent, state: Parameters<typeof listener>[0]) => listener(state)
|
||||
ipcRenderer.on('reservation:salvo-state', wrapped)
|
||||
return () => ipcRenderer.off('reservation:salvo-state', wrapped)
|
||||
},
|
||||
}
|
||||
|
||||
contextBridge.exposeInMainWorld('reservationApi', reservationApi)
|
||||
|
||||
Reference in new issue
Block a user