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

@ -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;