소스 검색

rename callStatsUID to callStatsUserName

master
isymchych 9 년 전
부모
커밋
9f2b3aa011
2개의 변경된 파일14개의 추가작업 그리고 11개의 파일을 삭제
  1. 13
    10
      modules/settings/Settings.js
  2. 1
    1
      modules/statistics/CallStats.js

+ 13
- 10
modules/settings/Settings.js 파일 보기

@@ -4,7 +4,7 @@ var email = '';
4 4
 var displayName = '';
5 5
 var userId;
6 6
 var language = null;
7
-var callStatsUID;
7
+var callStatsUserName;
8 8
 
9 9
 
10 10
 function supportsLocalStorage() {
@@ -29,20 +29,23 @@ if (supportsLocalStorage()) {
29 29
         window.localStorage.jitsiMeetId = generateUniqueId();
30 30
         console.log("generated id", window.localStorage.jitsiMeetId);
31 31
     }
32
-    if (!window.localStorage.callStatsUID) {
33
-        window.localStorage.callStatsUID = UsernameGenerator.generateUsername();
32
+
33
+    if (!window.localStorage.callStatsUserName) {
34
+        window.localStorage.callStatsUserName
35
+            = UsernameGenerator.generateUsername();
34 36
         console.log('generated callstats uid',
35
-            window.localStorage.callStatsUID);
37
+            window.localStorage.callStatsUserName);
38
+
36 39
     }
37 40
     userId = window.localStorage.jitsiMeetId || '';
38
-    callStatsUID = window.localStorage.callStatsUID;
41
+    callStatsUserName = window.localStorage.callStatsUserName;
39 42
     email = window.localStorage.email || '';
40 43
     displayName = window.localStorage.displayname || '';
41 44
     language = window.localStorage.language;
42 45
 } else {
43 46
     console.log("local storage is not supported");
44 47
     userId = generateUniqueId();
45
-    callStatsUID = UsernameGenerator.generateUsername();
48
+    callStatsUserName = UsernameGenerator.generateUsername();
46 49
 }
47 50
 
48 51
 var Settings = {
@@ -68,11 +71,11 @@ var Settings = {
68 71
     },
69 72
 
70 73
     /**
71
-     * Returns user id for callstats
72
-     * @returns {string} user id for callstats
74
+     * Returns fake username for callstats
75
+     * @returns {string} fake username for callstats
73 76
      */
74
-    getCallStatsUID: function () {
75
-        return callStatsUID;
77
+    getCallStatsUserName: function () {
78
+        return callStatsUserName;
76 79
     },
77 80
 
78 81
     setEmail: function (newEmail) {

+ 1
- 1
modules/statistics/CallStats.js 파일 보기

@@ -20,7 +20,7 @@ var CallStats = {
20 20
         this.session = jingleSession;
21 21
         this.peerconnection = jingleSession.peerconnection.peerconnection;
22 22
 
23
-        this.userID = Settings.getCallStatsUID();
23
+        this.userID = Settings.getCallStatsUserName();
24 24
 
25 25
         var location = window.location;
26 26
         this.confID = location.hostname + location.pathname;

Loading…
취소
저장