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

pull/1/head
yflory 6 years ago
parent c85a551546
commit 27797c0520

@ -188,13 +188,13 @@ define([
if (val) { if (val) {
password = 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) { if (size !== 0) {
return void todo(); return void todo();
} }
// Wrong password or deleted file? // Wrong password or deleted file?
askPassword(true); askPassword(true);
}); }));
} else { } else {
askPassword(); askPassword();
} }

Loading…
Cancel
Save