supporting disabled password option in the JS part, fixes #55

This commit is contained in:
El RIDO 2015-11-16 19:58:45 +01:00
parent 24a4328c55
commit ce107c928e

View File

@ -443,7 +443,7 @@ $(function() {
*/ */
cipher: function(key, password, message) cipher: function(key, password, message)
{ {
password = password.trim(); password = (password || '').trim();
if (password.length == 0) if (password.length == 0)
{ {
return sjcl.encrypt(key, this.compress(message)); return sjcl.encrypt(key, this.compress(message));