Skip to content

Commit

Permalink
log app shell request response
Browse files Browse the repository at this point in the history
  • Loading branch information
shlokamin committed Oct 30, 2023
1 parent 01d2bcb commit e50dfd7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/src/redux/shell/remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,17 @@ export function appShellRequestor<Data>(
const configProxy = { ...config, data: formDataProxy }
console.log('calling ipc renderer over usb')

return remote.ipcRenderer.invoke('usb:request', configProxy)
const responsePromise = remote.ipcRenderer.invoke('usb:request', configProxy)

responsePromise
.then(resp => {
console.log('APP SHELL REQUESTOR RESPONSE:')
console.log(resp)
})
.catch(e => {
console.log('APP SHELL REQUESTOR ERROR:')
console.log(e)
})

return responsePromise
}

0 comments on commit e50dfd7

Please sign in to comment.