Skip to content
This repository has been archived by the owner. It is now read-only.

sync v2 #13197

Closed
wants to merge 16 commits into from

remove global scope from niceware

  • Loading branch information
Cezar Augusto authored and cezaraugusto committed Apr 4, 2018
commit f8cc3d280862706d4de7f2ffde269dede4604437
@@ -865,7 +865,7 @@ class SyncTab extends ImmutableComponent {
if (words.length === 24) {
inputCode = Buffer.from(bip39.mnemonicToEntropy(text), 'hex')
} else if (words.length === 16) {
inputCode = window.niceware.passphraseToBytes(words)
inputCode = niceware.passphraseToBytes(words)
} else {
throw new Error('Expecting 24 or 16 words in passphrase (received ' + words.length + ')')
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.