aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/config-manager.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/lib/config-manager.js')
-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 c79dc7a8f..102327c2d 100644
--- a/app/scripts/lib/config-manager.js
+++ b/app/scripts/lib/config-manager.js
@@ -102,6 +102,17 @@ ConfigManager.prototype.setWallet = function(wallet) {
this.setData(data)
}
+ConfigManager.prototype.getSelectedAccount = function() {
+ var config = this.getConfig()
+ return config.selectedAccount
+}
+
+ConfigManager.prototype.setSelectedAccount = function(address) {
+ var config = this.getConfig()
+ config.selectedAccount = address
+ this.setConfig(config)
+}
+
ConfigManager.prototype.getWallet = function() {
return this.migrator.getData().wallet
}