rename callStatsUID to callStatsUserName
This commit is contained in:
parent
c89c9e78ff
commit
9f2b3aa011
|
@ -4,7 +4,7 @@ var email = '';
|
||||||
var displayName = '';
|
var displayName = '';
|
||||||
var userId;
|
var userId;
|
||||||
var language = null;
|
var language = null;
|
||||||
var callStatsUID;
|
var callStatsUserName;
|
||||||
|
|
||||||
|
|
||||||
function supportsLocalStorage() {
|
function supportsLocalStorage() {
|
||||||
|
@ -29,20 +29,23 @@ if (supportsLocalStorage()) {
|
||||||
window.localStorage.jitsiMeetId = generateUniqueId();
|
window.localStorage.jitsiMeetId = generateUniqueId();
|
||||||
console.log("generated id", window.localStorage.jitsiMeetId);
|
console.log("generated id", window.localStorage.jitsiMeetId);
|
||||||
}
|
}
|
||||||
if (!window.localStorage.callStatsUID) {
|
|
||||||
window.localStorage.callStatsUID = UsernameGenerator.generateUsername();
|
if (!window.localStorage.callStatsUserName) {
|
||||||
|
window.localStorage.callStatsUserName
|
||||||
|
= UsernameGenerator.generateUsername();
|
||||||
console.log('generated callstats uid',
|
console.log('generated callstats uid',
|
||||||
window.localStorage.callStatsUID);
|
window.localStorage.callStatsUserName);
|
||||||
|
|
||||||
}
|
}
|
||||||
userId = window.localStorage.jitsiMeetId || '';
|
userId = window.localStorage.jitsiMeetId || '';
|
||||||
callStatsUID = window.localStorage.callStatsUID;
|
callStatsUserName = window.localStorage.callStatsUserName;
|
||||||
email = window.localStorage.email || '';
|
email = window.localStorage.email || '';
|
||||||
displayName = window.localStorage.displayname || '';
|
displayName = window.localStorage.displayname || '';
|
||||||
language = window.localStorage.language;
|
language = window.localStorage.language;
|
||||||
} else {
|
} else {
|
||||||
console.log("local storage is not supported");
|
console.log("local storage is not supported");
|
||||||
userId = generateUniqueId();
|
userId = generateUniqueId();
|
||||||
callStatsUID = UsernameGenerator.generateUsername();
|
callStatsUserName = UsernameGenerator.generateUsername();
|
||||||
}
|
}
|
||||||
|
|
||||||
var Settings = {
|
var Settings = {
|
||||||
|
@ -68,11 +71,11 @@ var Settings = {
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns user id for callstats
|
* Returns fake username for callstats
|
||||||
* @returns {string} user id for callstats
|
* @returns {string} fake username for callstats
|
||||||
*/
|
*/
|
||||||
getCallStatsUID: function () {
|
getCallStatsUserName: function () {
|
||||||
return callStatsUID;
|
return callStatsUserName;
|
||||||
},
|
},
|
||||||
|
|
||||||
setEmail: function (newEmail) {
|
setEmail: function (newEmail) {
|
||||||
|
|
|
@ -20,7 +20,7 @@ var CallStats = {
|
||||||
this.session = jingleSession;
|
this.session = jingleSession;
|
||||||
this.peerconnection = jingleSession.peerconnection.peerconnection;
|
this.peerconnection = jingleSession.peerconnection.peerconnection;
|
||||||
|
|
||||||
this.userID = Settings.getCallStatsUID();
|
this.userID = Settings.getCallStatsUserName();
|
||||||
|
|
||||||
var location = window.location;
|
var location = window.location;
|
||||||
this.confID = location.hostname + location.pathname;
|
this.confID = location.hostname + location.pathname;
|
||||||
|
|
Loading…
Reference in New Issue