Use an environment object instead of string.

This commit is contained in:
Andy Phillipson 2017-01-05 16:29:17 -05:00
commit 28f9fbc0b6
5 changed files with 22 additions and 17 deletions

View file

@ -728,7 +728,13 @@ angular.module('copayApp.services')
};
root.getAppIdentity = function(network, cb) {
storage.get('appIdentity-' + network, cb);
storage.get('appIdentity-' + network, function(err, data) {
if (err) return cb(err);
if (lodash.isString(data)) {
data = JSON.parse(data);
}
cb(err, data);
});
};
root.removeAppIdentity = function(network, cb) {