jshint compliancy

This commit is contained in:
ansuz
2016-09-23 17:53:24 +02:00
parent ed9acf1c00
commit d6525087c7
3 changed files with 4 additions and 5 deletions

View File

@@ -201,8 +201,7 @@ define([
}
else if (mode === 'view') {
secret.channel = base64ToHex(hashArray[3]);
var keys = Crypto.createViewCryptor(hashArray[4].replace(/-/g, '/'));
secret.keys = keys;
secret.keys = Crypto.createViewCryptor(hashArray[4].replace(/-/g, '/'));
if (secret.channel.length !== 32) {
common.alert("The channel key is invalid");
throw new Error("The channel key is invalid");