FINALLY report crypto, etc errors to console thanks to promises...

This commit is contained in:
Matt Corallo 2014-05-13 04:40:29 -04:00
parent a7de5e2159
commit caa363b929
5 changed files with 112 additions and 111 deletions

View file

@ -85,7 +85,7 @@ $('#init-go').click(function() {
var register_keys_func = function() {
$('#verify2done').html('done');
crypto.generateKeys(function(keys) {
crypto.generateKeys().then(function(keys) {
$('#verify3done').html('done');
API.registerKeys(keys,
function(response) {