aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-06-28 17:13:11 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-06-28 17:13:11 +0200
commit80e908496958a2df4d6884fcd60e9124547f8da9 (patch)
treef428e3ca7f70359a16d6a352c70ae78a2415b085
parentb67d1c4229c2fa2e21af9a451eec16322e4ee204 (diff)
Adapt to recent protocol change.
-rw-r--r--provision.js4
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);
});
});
});
});
-