lint compliance

pull/1/head
yflory 5 years ago
parent 5174472329
commit 3aa111d8a8

@ -4,7 +4,7 @@ var factory = function (Hash, Crypt, Nacl, Scrypt/*, Util, Cred, nThen */) {
Invite.deriveSeeds = function (safeSeed) { Invite.deriveSeeds = function (safeSeed) {
// take the hash of the provided seed // take the hash of the provided seed
seed = safeSeed.replace(/\-/g, '/'); var seed = safeSeed.replace(/\-/g, '/');
var u8_seed = Nacl.hash(Nacl.util.decodeBase64(seed)); var u8_seed = Nacl.hash(Nacl.util.decodeBase64(seed));
// hash the first half again for scrypt's input // hash the first half again for scrypt's input

@ -10,7 +10,7 @@ define([
var l = window.location; var l = window.location;
if (origin && window && window.document) { if (origin && window && window.document) {
var l = document.createElement("a"); l = document.createElement("a");
l.href = origin; l.href = origin;
} }
var protocol = l.protocol.replace(/http/, 'ws'); var protocol = l.protocol.replace(/http/, 'ws');

@ -775,6 +775,7 @@ var factory = function (Util, Hash, CPNetflux, Sortify, nThen, Crypto) {
Object.keys(data).forEach(function (curve) { Object.keys(data).forEach(function (curve) {
if (!isValidId(curve) || isMap(ref.state.members[curve])) { return delete data[curve]; } if (!isValidId(curve) || isMap(ref.state.members[curve])) { return delete data[curve]; }
}); });
console.error('SENDING INVITE');
send(['INVITE', data], cb); send(['INVITE', data], cb);
}; };

Loading…
Cancel
Save