Browse Source

fix(analytics): use string concatenation for ie11

master
Leonard Kim 7 years ago
parent
commit
c6b11ed55d
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      analytics.js

+ 5
- 2
analytics.js View File

@@ -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') {

Loading…
Cancel
Save