diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2012-06-28 17:13:11 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2012-06-28 17:13:11 +0200 |
commit | 80e908496958a2df4d6884fcd60e9124547f8da9 (patch) | |
tree | f428e3ca7f70359a16d6a352c70ae78a2415b085 | |
parent | b67d1c4229c2fa2e21af9a451eec16322e4ee204 (diff) |
Adapt to recent protocol change.
-rw-r--r-- | provision.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/provision.js b/provision.js index 566075b..5441bce 100644 --- a/provision.js +++ b/provision.js @@ -55,9 +55,11 @@ jQuery(function($) { console.log('cert_duration: ' + cert_duration); ifLoggedIn(email, function() { navigator.id.genKeyPair(function(pubkey) { + if (typeof(pubkey) === 'string') { + pubkey = JSON.parse(pubkey); + } sign(email, pubkey, cert_duration); }); }); }); }); - |