Skip to content

Commit

Permalink
move manifest to constant
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonlesisz committed Mar 1, 2019
1 parent 6868664 commit 2852c09
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ const keyringType = 'Trezor Hardware'
const pathBase = 'm'
const MAX_INDEX = 1000
const DELAY_BETWEEN_POPUPS = 1000
const TREZOR_CONNECT_MANIFEST = {
email: '[email protected]',
appUrl: 'https://metamask.io',
}

class TrezorKeyring extends EventEmitter {
constructor (opts = {}) {
Expand All @@ -20,10 +24,7 @@ class TrezorKeyring extends EventEmitter {
this.unlockedAccount = 0
this.paths = {}
this.deserialize(opts)
TrezorConnect.manifest({
email: '[email protected]',
appUrl: 'https://metamask.io',
})
TrezorConnect.manifest(TREZOR_CONNECT_MANIFEST)
}

serialize () {
Expand Down

0 comments on commit 2852c09

Please sign in to comment.