set shuffled words
This commit is contained in:
parent
7ceed35c29
commit
895e755df0
1 changed files with 3 additions and 0 deletions
|
|
@ -74,9 +74,12 @@ angular.module('copayApp.controllers').controller('backupController',
|
|||
function setWords(words) {
|
||||
if (words) {
|
||||
self.mnemonicWords = words.split(/[\u3000\s]+/);
|
||||
self.shuffledMnemonicWords = lodash.shuffle(self.mnemonicWords);
|
||||
self.mnemonicHasPassphrase = fc.mnemonicHasPassphrase();
|
||||
self.useIdeograms = words.indexOf("\u3000") >= 0;
|
||||
}
|
||||
console.log(self.mnemonicWords);
|
||||
console.log(self.shuffledMnemonicWords);
|
||||
};
|
||||
|
||||
self.toggle = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue