Explorar el Código

Merge pull request #2140 from virtuacoplenny/lenny/ie11-analytics

fix(analytics): use string concatenation for ie11
master
Saúl Ibarra Corretgé hace 7 años
padre
commit
b838a2be05
No account linked to committer's email address
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5
    2
      analytics.js

+ 5
- 2
analytics.js Ver fichero

@@ -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…
Cancelar
Guardar