浏览代码

Removes browser suffix adding to all action names.

Passing the browser name as parameter.
master
damencho 9 年前
父节点
当前提交
7cd5a80206
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      modules/statistics/AnalyticsAdapter.js

+ 2
- 2
modules/statistics/AnalyticsAdapter.js 查看文件

4
 NoopAnalytics.prototype.sendEvent = function () {};
4
 NoopAnalytics.prototype.sendEvent = function () {};
5
 
5
 
6
 function AnalyticsAdapter() {
6
 function AnalyticsAdapter() {
7
-    this.browserActionSuffix = '.' + RTCBrowserType.getBrowserName();
7
+    this.browserName = RTCBrowserType.getBrowserName();
8
 }
8
 }
9
 
9
 
10
 // some events may happen before init or implementation script download
10
 // some events may happen before init or implementation script download
35
     }
35
     }
36
     try {
36
     try {
37
         this.analytics.sendEvent(
37
         this.analytics.sendEvent(
38
-            action + this.browserActionSuffix, data, label);
38
+            action, data, label, this.browserName);
39
     } catch (ignored) {}
39
     } catch (ignored) {}
40
 };
40
 };
41
 
41
 

正在加载...
取消
保存