Loëck Vézien
7 years ago
No known key found for this signature in database
GPG Key ID: CBCDCE384E853AC4
2 changed files with
7 additions and
1 deletions
-
flow-defs/process.js
-
src/main/usb.js
|
|
@ -0,0 +1,6 @@ |
|
|
|
declare var process: { |
|
|
|
send(args: any): void, |
|
|
|
on(event: string, args: any): void, |
|
|
|
title: string, |
|
|
|
env: Object, |
|
|
|
} |
|
|
@ -13,7 +13,7 @@ process.title = 'ledger-wallet-desktop-usb' |
|
|
|
const isLedgerDevice = device => |
|
|
|
(device.vendorId === 0x2581 && device.productId === 0x3b7c) || device.vendorId === 0x2c97 |
|
|
|
|
|
|
|
function send(type: string, data: any, options = { kill: true }) { |
|
|
|
function send(type: string, data: any, options: Object = { kill: true }) { |
|
|
|
process.send({ type, data, options }) |
|
|
|
} |
|
|
|
|
|
|
|