added undefined error catch

This commit is contained in:
Kevin Froman 2017-04-04 10:21:45 -05:00
parent 2df1b086df
commit 5b14375bd9
No known key found for this signature in database
GPG Key ID: 36698DB39DA54065

View File

@ -175,6 +175,10 @@ function go(mode) {
if(split[i] == one || split[i] == zero)
sanitized = sanitized + split[i]
var output = decodeURIComponent(binToText(sanitized));
if (output === 'undefined'){
showError('Could not decode message. Maybe there wasn\'t one?');
return false;
}
if ($('#useEncrypt').is(':checked'))
{
if (verifyPass('decrypt'))