aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/config-manager.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-04-01 01:47:40 +0800
committerDan Finlay <dan@danfinlay.com>2016-04-01 01:47:40 +0800
commitf5105293bf2d3e6fb325e015b5b2b67baa7d03cc (patch)
tree1346ea1582acb5ceb0156b023637f3288a525185 /app/scripts/lib/config-manager.js
parentea7b89172973fba27cc7a0b63c87289667175145 (diff)
downloadtangerine-wallet-browser-f5105293bf2d3e6fb325e015b5b2b67baa7d03cc.tar
tangerine-wallet-browser-f5105293bf2d3e6fb325e015b5b2b67baa7d03cc.tar.gz
tangerine-wallet-browser-f5105293bf2d3e6fb325e015b5b2b67baa7d03cc.tar.bz2
tangerine-wallet-browser-f5105293bf2d3e6fb325e015b5b2b67baa7d03cc.tar.lz
tangerine-wallet-browser-f5105293bf2d3e6fb325e015b5b2b67baa7d03cc.tar.xz
tangerine-wallet-browser-f5105293bf2d3e6fb325e015b5b2b67baa7d03cc.tar.zst
tangerine-wallet-browser-f5105293bf2d3e6fb325e015b5b2b67baa7d03cc.zip
Do not cache the seed, retrieve it from the decrypted wallet
Diffstat (limited to 'app/scripts/lib/config-manager.js')
-rw-r--r--app/scripts/lib/config-manager.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js
index 038774a30..682b34637 100644
--- a/app/scripts/lib/config-manager.js
+++ b/app/scripts/lib/config-manager.js
@@ -88,20 +88,16 @@ ConfigManager.prototype.getWallet = function() {
return this.migrator.getData().wallet
}
-ConfigManager.prototype.getSeedWords = function() {
- return this.migrator.getData().seedWords
-}
-
-ConfigManager.prototype.setSeedWords = function(seedWords) {
+// Takes a boolean
+ConfigManager.prototype.setShowSeedWords = function(should) {
var data = this.migrator.getData()
- data.seedWords = seedWords
+ data.showSeedWords = should
this.setData(data)
}
-ConfigManager.prototype.clearSeedWords = function() {
+ConfigManager.prototype.getShouldShowSeedWords = function() {
var data = this.migrator.getData()
- delete data.seedWords
- this.setData(data)
+ return data.showSeedWords
}
ConfigManager.prototype.getCurrentRpcAddress = function() {