From 80e908496958a2df4d6884fcd60e9124547f8da9 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Thu, 28 Jun 2012 17:13:11 +0200 Subject: Adapt to recent protocol change. --- provision.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }); }); }); }); - -- cgit v1.2.3