ソースを参照

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,8 +27,11 @@
27 27
         value = value ? Math.round(parseFloat(value)) : null;
28 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 37
     if (typeof ctx.JitsiMeetJS === 'undefined') {

読み込み中…
キャンセル
保存