Use an environment object instead of string.
This commit is contained in:
parent
189117433a
commit
28f9fbc0b6
5 changed files with 22 additions and 17 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue