From 2628d250300b9c405d3da8fc4d7daa22cb77737d Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 10 Feb 2021 11:41:54 +0100 Subject: [PATCH] Fix type error --- www/common/sframe-common-outer.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/common/sframe-common-outer.js b/www/common/sframe-common-outer.js index 65a912bce..6a9df3f6d 100644 --- a/www/common/sframe-common-outer.js +++ b/www/common/sframe-common-outer.js @@ -568,7 +568,10 @@ define([ var metaObj; nThen(function (waitFor) { Cryptpad.getMetadata(waitFor(function (err, m) { - if (err) { console.log(err); } + if (err) { + waitFor.abort(); + return void console.log(err); + } metaObj = m; edPublic = metaObj.priv.edPublic; // needed to create an owned pad curvePublic = metaObj.user.curvePublic;