From 09959bb10d5e353b3dfd6cd602bed6e49570ee4e Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Fri, 12 Dec 2014 14:37:40 -0300 Subject: [PATCH] fix headers handling --- js/models/Identity.js | 4 ++-- views/profile.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/models/Identity.js b/js/models/Identity.js index a55e1d667..bf4bd95ee 100644 --- a/js/models/Identity.js +++ b/js/models/Identity.js @@ -125,7 +125,7 @@ Identity.open = function(opts, cb) { var storage = opts.storage || opts.pluginManager.get('DB'); storage.setCredentials(opts.email, opts.password, opts); - storage.getItem(Identity.getKeyForEmail(opts.email), function(err, data) { + storage.getItem(Identity.getKeyForEmail(opts.email), function(err, data, headers) { var exported; if (err) { return cb(err); @@ -135,7 +135,7 @@ Identity.open = function(opts, cb) { } catch (e) { return cb(e); } - return cb(null, new Identity(_.extend(opts, exported))); + return cb(null, new Identity(_.extend(opts, exported)), headers); }); }; diff --git a/views/profile.html b/views/profile.html index 105687d1d..b2a7b5dfc 100644 --- a/views/profile.html +++ b/views/profile.html @@ -97,10 +97,10 @@
-

Your current Insight server usage quotas are: {{perItem}}kB per walelt and up to {{nrWallets}} wallets. + Your current Insight server usage quotas are: {{perItem}}kB per walelt and up to {{nrWallets}} wallets.

-
-

Confirming for email with increase your storage usage limits. +

+ Confirming for email with increase your storage usage limits.