Fix type error

pull/1/head
yflory 4 years ago
parent fb606929ef
commit 2628d25030

@ -568,7 +568,10 @@ define([
var metaObj; var metaObj;
nThen(function (waitFor) { nThen(function (waitFor) {
Cryptpad.getMetadata(waitFor(function (err, m) { Cryptpad.getMetadata(waitFor(function (err, m) {
if (err) { console.log(err); } if (err) {
waitFor.abort();
return void console.log(err);
}
metaObj = m; metaObj = m;
edPublic = metaObj.priv.edPublic; // needed to create an owned pad edPublic = metaObj.priv.edPublic; // needed to create an owned pad
curvePublic = metaObj.user.curvePublic; curvePublic = metaObj.user.curvePublic;

Loading…
Cancel
Save