added undefined error catch
This commit is contained in:
parent
2df1b086df
commit
5b14375bd9
@ -175,6 +175,10 @@ function go(mode) {
|
|||||||
if(split[i] == one || split[i] == zero)
|
if(split[i] == one || split[i] == zero)
|
||||||
sanitized = sanitized + split[i]
|
sanitized = sanitized + split[i]
|
||||||
var output = decodeURIComponent(binToText(sanitized));
|
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 ($('#useEncrypt').is(':checked'))
|
||||||
{
|
{
|
||||||
if (verifyPass('decrypt'))
|
if (verifyPass('decrypt'))
|
||||||
|
Loading…
Reference in New Issue
Block a user