소스 검색

fix(analytics): use string concatenation for ie11

j8
Leonard Kim 8 년 전
부모
커밋
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') {

Loading…
취소
저장