Browse Source

Fix Flow

master
Loëck Vézien 7 years ago
parent
commit
b7c1059559
No known key found for this signature in database GPG Key ID: CBCDCE384E853AC4
  1. 6
      flow-defs/process.js
  2. 2
      src/main/usb.js

6
flow-defs/process.js

@ -0,0 +1,6 @@
declare var process: {
send(args: any): void,
on(event: string, args: any): void,
title: string,
env: Object,
}

2
src/main/usb.js

@ -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 })
}

Loading…
Cancel
Save