diff --git a/resources/static/shared/storage.js b/resources/static/shared/storage.js index 53b1e041fe0813f2dd728996a8e1d8e61d0c0414..ea70112eb2acf86f3b182d0e95972e19952b6ba6 100644 --- a/resources/static/shared/storage.js +++ b/resources/static/shared/storage.js @@ -62,7 +62,7 @@ BrowserID.Storage = (function() { return emails; } catch(e) { } - + // if we had a problem parsing or the emails are null clear(); return {}; @@ -146,7 +146,7 @@ BrowserID.Storage = (function() { try { var staged = JSON.parse(window.localStorage.stagedOnBehalfOf); - + if (staged) { if ((new Date() - new Date(staged.at)) > (5 * 60 * 1000)) throw "stale"; if (typeof(staged.origin) !== 'string') throw "malformed"; diff --git a/resources/static/shared/user.js b/resources/static/shared/user.js index 6c9a1907770f4f5e3d8ba34a6bb8946dddc43a5a..f58d9b1f7d7e671d3362bb595b14fe89d0db46bb 100644 --- a/resources/static/shared/user.js +++ b/resources/static/shared/user.js @@ -587,7 +587,6 @@ BrowserID.User = (function() { * @param {function} [onFailure] - Called on error. */ syncEmailKeypair: function(email, onSuccess, onFailure) { - // FIXME use true key sizes prepareDeps(); // FIXME: parameterize! var keysize = 256;