diff --git a/webssh/static/js/main.js b/webssh/static/js/main.js index 9817f2b..c0cd62f 100644 --- a/webssh/static/js/main.js +++ b/webssh/static/js/main.js @@ -336,7 +336,7 @@ jQuery(function($){ } var pk = data.get('privatekey'); - if (pk) { + if (pk && pk.size) { if (pk.size > key_max_size) { console.log('Invalid private key: ' + pk.name); } else {