From c6b11ed55d253a8f259cb926c0c13d0d3cb59aff Mon Sep 17 00:00:00 2001 From: Leonard Kim Date: Tue, 7 Nov 2017 20:01:23 -0800 Subject: [PATCH] fix(analytics): use string concatenation for ie11 --- analytics.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/analytics.js b/analytics.js index fc399609e..00db3f671 100644 --- a/analytics.js +++ b/analytics.js @@ -27,8 +27,11 @@ value = value ? Math.round(parseFloat(value)) : null; const label = data.label || ''; - ga('send', 'event', 'jit.si', - `${action}.${data.browserName}`, label, value); + // Intentionally use string concatenation as analytics needs to work on + // IE but this file does not go through babel. + // eslint-disable-next-line prefer-template + ga('send', 'event', 'jit.si', action + '.' + data.browserName, + label, value); }; if (typeof ctx.JitsiMeetJS === 'undefined') {