aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-10-12 07:13:21 +0800
committerGitHub <noreply@github.com>2016-10-12 07:13:21 +0800
commitbbaf79f576443f6325d6c32d119f020a61bffa67 (patch)
treebdf23c55a77a3181dd5cc1230f389bd15106d11d /app/scripts/lib
parent0182f8a4e91b8a9b0951967d2c075955bfb4f24f (diff)
parent39f2118d314b4d12a4ebfdebd736e40d9474fad3 (diff)
downloadtangerine-wallet-browser-bbaf79f576443f6325d6c32d119f020a61bffa67.tar.gz
tangerine-wallet-browser-bbaf79f576443f6325d6c32d119f020a61bffa67.tar.zst
tangerine-wallet-browser-bbaf79f576443f6325d6c32d119f020a61bffa67.zip
Merge pull request #702 from MetaMask/tos
Terms of Service UI Update
Diffstat (limited to 'app/scripts/lib')
-rw-r--r--app/scripts/lib/config-manager.js11
-rw-r--r--app/scripts/lib/idStore.js2
2 files changed, 13 insertions, 0 deletions
diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js
index 715efb42e..ecc9bc5f7 100644
--- a/app/scripts/lib/config-manager.js
+++ b/app/scripts/lib/config-manager.js
@@ -277,6 +277,17 @@ ConfigManager.prototype.getConfirmed = function () {
return ('isConfirmed' in data) && data.isConfirmed
}
+ConfigManager.prototype.setTOSHash = function (hash) {
+ var data = this.getData()
+ data.TOSHash = hash
+ this.setData(data)
+}
+
+ConfigManager.prototype.getTOSHash = function () {
+ var data = this.getData()
+ return ('TOSHash' in data) && data.TOSHash
+}
+
ConfigManager.prototype.setCurrentFiat = function (currency) {
var data = this.getData()
data.fiatCurrency = currency
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js
index 89c0c3abc..6837a1e8d 100644
--- a/app/scripts/lib/idStore.js
+++ b/app/scripts/lib/idStore.js
@@ -60,6 +60,8 @@ IdentityStore.prototype.createNewVault = function (password, entropy, cb) {
this.configManager.setShowSeedWords(true)
var seedWords = this._idmgmt.getSeed()
+ this._loadIdentities()
+
cb(null, seedWords)
})
}