lint compliance
parent
5174472329
commit
3aa111d8a8
|
@ -4,7 +4,7 @@ var factory = function (Hash, Crypt, Nacl, Scrypt/*, Util, Cred, nThen */) {
|
|||
|
||||
Invite.deriveSeeds = function (safeSeed) {
|
||||
// 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));
|
||||
|
||||
// hash the first half again for scrypt's input
|
||||
|
|
|
@ -10,7 +10,7 @@ define([
|
|||
|
||||
var l = window.location;
|
||||
if (origin && window && window.document) {
|
||||
var l = document.createElement("a");
|
||||
l = document.createElement("a");
|
||||
l.href = origin;
|
||||
}
|
||||
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) {
|
||||
if (!isValidId(curve) || isMap(ref.state.members[curve])) { return delete data[curve]; }
|
||||
});
|
||||
console.error('SENDING INVITE');
|
||||
|
||||
send(['INVITE', data], cb);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue