don't try to decrypt nothing

pull/1/head
ansuz 8 years ago
parent 69e933dd17
commit 4c4c21342d

@ -180,6 +180,10 @@ define([
var cryptKey = secret.keys && secret.keys.fileKeyStr;
var key = Nacl.util.decodeBase64(cryptKey);
if (!u8 || !u8.length) {
return void Cryptpad.errorLoadingScreen(e);
}
FileCrypto.decrypt(u8, key, function (e, data) {
if (e) {
Cryptpad.removeLoadingScreen();

Loading…
Cancel
Save