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
|
|
@ -7,9 +7,6 @@ angular.module('copayApp.services').factory('appIdentityService', function($log,
|
|||
var pubkey, sin, isNew;
|
||||
storageService.getAppIdentity(network, function(err, data) {
|
||||
if (err) return cb(err);
|
||||
if (lodash.isString(data)) {
|
||||
data = JSON.parse(data);
|
||||
}
|
||||
var appIdentity = data || {};
|
||||
if (lodash.isEmpty(appIdentity) || (appIdentity && !appIdentity.priv)) {
|
||||
isNew = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue