From 69dbc7e5cbd1180334b7ea39dc423b31d5655f40 Mon Sep 17 00:00:00 2001
From: JoramWilander <jwawilander@gmail.com>
Date: Mon, 15 Jun 2015 08:00:53 -0400
Subject: fixes mm-1223 gracefully handle missing analytics configs

---
 web/react/utils/client.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'web/react/utils/client.jsx')

diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx
index b83ee22e7..701d3d25b 100644
--- a/web/react/utils/client.jsx
+++ b/web/react/utils/client.jsx
@@ -4,16 +4,16 @@
 
 module.exports.track = function(category, action, label, prop, val) {
     global.window.snowplow('trackStructEvent', category, action, label, prop, val);
-    if (global.window.analytics != null) global.window.analytics.track(action, {category: category, label: label, property: prop, value: val});
+    global.window.analytics.track(action, {category: category, label: label, property: prop, value: val});
 };
 
 module.exports.trackPage = function() {
     global.window.snowplow('trackPageView');
-    if (global.window.analytics != null) global.window.analytics.page();
+    global.window.analytics.page();
 };
 
 function handleError(method_name, xhr, status, err) {
-    var _LTracker = global.window._LTracker || [];
+    var _LTracker = global.window._LTracker;
 
     var e = null;
     try {
-- 
cgit v1.2.3-1-g7c22


From a70926e897d95edf7c9e2e5bcbbec4d4f09985cf Mon Sep 17 00:00:00 2001
From: JoramWilander <jwawilander@gmail.com>
Date: Mon, 15 Jun 2015 08:01:54 -0400
Subject: don't remove null check for ltracker

---
 web/react/utils/client.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'web/react/utils/client.jsx')

diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx
index 701d3d25b..e9f2108a0 100644
--- a/web/react/utils/client.jsx
+++ b/web/react/utils/client.jsx
@@ -13,7 +13,7 @@ module.exports.trackPage = function() {
 };
 
 function handleError(method_name, xhr, status, err) {
-    var _LTracker = global.window._LTracker;
+    var _LTracker = global.window._LTracker | [];
 
     var e = null;
     try {
-- 
cgit v1.2.3-1-g7c22


From f9dcbd7ebb293b1b9968d5bc03004628a4642a15 Mon Sep 17 00:00:00 2001
From: JoramWilander <jwawilander@gmail.com>
Date: Mon, 15 Jun 2015 08:02:39 -0400
Subject: fix typo

---
 web/react/utils/client.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'web/react/utils/client.jsx')

diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx
index e9f2108a0..786e6dcea 100644
--- a/web/react/utils/client.jsx
+++ b/web/react/utils/client.jsx
@@ -13,7 +13,7 @@ module.exports.trackPage = function() {
 };
 
 function handleError(method_name, xhr, status, err) {
-    var _LTracker = global.window._LTracker | [];
+    var _LTracker = global.window._LTracker || [];
 
     var e = null;
     try {
-- 
cgit v1.2.3-1-g7c22

