diff --git a/www/pad/main.js b/www/pad/main.js index f104b4fc4..6956d3e43 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -275,7 +275,7 @@ define([ }; var setName = module.setName = function (newName) { - if (!(typeof(newName) === 'string' && newName.trim())) { return; } + if (!(typeof(newName) === 'string')) { return; } var myUserNameTemp = Cryptpad.fixHTML(newName.trim()); if(myUserNameTemp.length > 32) { myUserNameTemp = myUserNameTemp.substr(0, 32);