@lendi/navbar 7.40.5 → 7.40.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -135,7 +135,7 @@ function _objectSpread2(e) {
135
135
  }
136
136
 
137
137
  var analytics = navbarAnalyticsEvent => {
138
- if (window && window.analytics) {
138
+ if (window) {
139
139
  analytics$1.trackEvent(_objectSpread2({}, navbarAnalyticsEvent));
140
140
  } else {
141
141
  if (process.env.NODE_ENV === 'development') {
@@ -63,7 +63,7 @@ function _objectSpread2(e) {
63
63
  }
64
64
 
65
65
  var _templateObject$g, _templateObject2$6, _templateObject3$2, _templateObject4$1, _templateObject5$1, analytics = navbarAnalyticsEvent => {
66
- window && window.analytics ? analytics$1.trackEvent(_objectSpread2({}, navbarAnalyticsEvent)) : console.error("Segment is not loaded");
66
+ window ? analytics$1.trackEvent(_objectSpread2({}, navbarAnalyticsEvent)) : console.error("Segment is not loaded");
67
67
  };
68
68
 
69
69
  function _taggedTemplateLiteral(strings, raw) {
@@ -102,7 +102,7 @@ function _objectSpread2(e) {
102
102
  }
103
103
 
104
104
  var analytics = navbarAnalyticsEvent => {
105
- if (window && window.analytics) {
105
+ if (window) {
106
106
  trackEvent(_objectSpread2({}, navbarAnalyticsEvent));
107
107
  } else {
108
108
  if (process.env.NODE_ENV === 'development') {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lendi/navbar",
3
3
  "access": "restricted",
4
- "version": "7.40.5",
4
+ "version": "7.40.6",
5
5
  "license": "ISC",
6
6
  "source": "src/index.tsx",
7
7
  "main": "dist/navbar.cjs.js",