From f90fa641b8d45764b47ea10a657da712042acf62 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 12 Nov 2013 08:17:40 +0200 Subject: [PATCH] Typeof returns a string --- converse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/converse.js b/converse.js index 4d38d3c08..ad5444f4b 100644 --- a/converse.js +++ b/converse.js @@ -451,7 +451,7 @@ var pass = converse.connection.pass; var pass_check = this.get('pass_check'); var result, key; - if (saved_key && instance_tag && typeof pass_check !== undefined) { + if (saved_key && instance_tag && typeof pass_check !== 'undefined') { var decrypted = cipher.decrypt(crypto.algo.AES, saved_key, pass); key = otr.DSA.parsePrivate(decrypted.toString(crypto.enc.Latin1)); if (cipher.decrypt(crypto.algo.AES, pass_check, pass).toString(crypto.enc.Latin1) === 'match') {