From 27797c052060aae22a1bd8faa5c9f4a5d289cf24 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 2 Jul 2018 10:50:30 +0200 Subject: [PATCH] Fix undefined secret with password-protected files (#250) --- www/common/sframe-common-outer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/sframe-common-outer.js b/www/common/sframe-common-outer.js index 8b30aa2e2..459d9bc73 100644 --- a/www/common/sframe-common-outer.js +++ b/www/common/sframe-common-outer.js @@ -188,13 +188,13 @@ define([ if (val) { password = val; - Cryptpad.getFileSize(window.location.href, password, function (e, size) { + Cryptpad.getFileSize(window.location.href, password, waitFor(function (e, size) { if (size !== 0) { return void todo(); } // Wrong password or deleted file? askPassword(true); - }); + })); } else { askPassword(); }