浏览代码

fix(analytics): use string concatenation for ie11

master
Leonard Kim 7 年前
父节点
当前提交
c6b11ed55d
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5
    2
      analytics.js

+ 5
- 2
analytics.js 查看文件

27
         value = value ? Math.round(parseFloat(value)) : null;
27
         value = value ? Math.round(parseFloat(value)) : null;
28
         const label = data.label || '';
28
         const label = data.label || '';
29
 
29
 
30
-        ga('send', 'event', 'jit.si',
31
-            `${action}.${data.browserName}`, label, value);
30
+        // Intentionally use string concatenation as analytics needs to work on
31
+        // IE but this file does not go through babel.
32
+        // eslint-disable-next-line prefer-template
33
+        ga('send', 'event', 'jit.si', action + '.' + data.browserName,
34
+            label, value);
32
     };
35
     };
33
 
36
 
34
     if (typeof ctx.JitsiMeetJS === 'undefined') {
37
     if (typeof ctx.JitsiMeetJS === 'undefined') {

正在加载...
取消
保存