diff --git a/www/common/invitation.js b/www/common/invitation.js index d41982bf2..b21b2fa0e 100644 --- a/www/common/invitation.js +++ b/www/common/invitation.js @@ -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 diff --git a/www/common/outer/network-config.js b/www/common/outer/network-config.js index e310fe48b..300810b97 100644 --- a/www/common/outer/network-config.js +++ b/www/common/outer/network-config.js @@ -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'); diff --git a/www/common/outer/roster.js b/www/common/outer/roster.js index 214d1ff9b..6a1def6b9 100644 --- a/www/common/outer/roster.js +++ b/www/common/outer/roster.js @@ -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); };