diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-10-20 05:55:08 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2016-10-20 05:55:08 +0800 |
commit | ad3fa24a28c0ec45dca43a257005626a4027487a (patch) | |
tree | eafbf105e0a2e5caf70fcf542b018c444705335f /app/scripts/lib/config-manager.js | |
parent | 725d503f68f533e0d1dfc402c4316dcf677c0d89 (diff) | |
download | tangerine-wallet-browser-ad3fa24a28c0ec45dca43a257005626a4027487a.tar tangerine-wallet-browser-ad3fa24a28c0ec45dca43a257005626a4027487a.tar.gz tangerine-wallet-browser-ad3fa24a28c0ec45dca43a257005626a4027487a.tar.bz2 tangerine-wallet-browser-ad3fa24a28c0ec45dca43a257005626a4027487a.tar.lz tangerine-wallet-browser-ad3fa24a28c0ec45dca43a257005626a4027487a.tar.xz tangerine-wallet-browser-ad3fa24a28c0ec45dca43a257005626a4027487a.tar.zst tangerine-wallet-browser-ad3fa24a28c0ec45dca43a257005626a4027487a.zip |
Intermediary commit.
Diffstat (limited to 'app/scripts/lib/config-manager.js')
-rw-r--r-- | app/scripts/lib/config-manager.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js index d775e73fd..1c0e3b696 100644 --- a/app/scripts/lib/config-manager.js +++ b/app/scripts/lib/config-manager.js @@ -110,6 +110,17 @@ ConfigManager.prototype.setWallet = function (wallet) { this.setData(data) } +ConfigManager.prototype.setVault = function (encryptedString) { + var data = this.getData() + data.vault = encryptedString + this.setData(data) +} + +ConfigManager.prototype.getVault = function () { + var data = this.getData() + return ('vault' in data) && data.vault +} + ConfigManager.prototype.getKeychains = function () { return this.migrator.getData().keychains || [] } |