Fix undefined secret with password-protected files (#250)

This commit is contained in:
yflory 2018-07-02 10:50:30 +02:00
parent c85a551546
commit 27797c0520
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}