aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-10-06 18:23:47 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-10-06 18:23:47 +0800
commitdb068134047f1553b926e9b949cb6a6e7100c7be (patch)
treeaf11c5625ee80a4d48308748491a5739f3b7f780 /app
parent3fbccdee90b52ba53725ba5149e1cc549b05c222 (diff)
downloadtangerine-wallet-browser-db068134047f1553b926e9b949cb6a6e7100c7be.tar
tangerine-wallet-browser-db068134047f1553b926e9b949cb6a6e7100c7be.tar.gz
tangerine-wallet-browser-db068134047f1553b926e9b949cb6a6e7100c7be.tar.bz2
tangerine-wallet-browser-db068134047f1553b926e9b949cb6a6e7100c7be.tar.lz
tangerine-wallet-browser-db068134047f1553b926e9b949cb6a6e7100c7be.tar.xz
tangerine-wallet-browser-db068134047f1553b926e9b949cb6a6e7100c7be.tar.zst
tangerine-wallet-browser-db068134047f1553b926e9b949cb6a6e7100c7be.zip
Add new functions for storing TOS hashes in config manager.
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/config-manager.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js
index 715efb42e..8d37afd29 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 (version) {
+ var data = this.getData()
+ data.TOSHash = version
+ 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