diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-06-15 11:22:53 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-06-15 11:22:53 -0700 |
commit | 0cd93cf2da14a4e058eef06a0a0c1770e2fe3ab7 (patch) | |
tree | 3f86c6872aa94ee0530f8a6d2b7458fa655c11de /web/react/utils/client.jsx | |
parent | b7a821c3410ecd165241e2dbcf2c8376ae402124 (diff) | |
parent | 6f10c401a422170d42d9cee8ec01b94808fa338f (diff) | |
download | chat-0cd93cf2da14a4e058eef06a0a0c1770e2fe3ab7.tar.gz chat-0cd93cf2da14a4e058eef06a0a0c1770e2fe3ab7.tar.bz2 chat-0cd93cf2da14a4e058eef06a0a0c1770e2fe3ab7.zip |
Merge pull request #1 from mattermost/master
to me
Diffstat (limited to 'web/react/utils/client.jsx')
-rw-r--r-- | web/react/utils/client.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx index b83ee22e7..786e6dcea 100644 --- a/web/react/utils/client.jsx +++ b/web/react/utils/client.jsx @@ -4,12 +4,12 @@ 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) { |