coveo.analytics 2.18.53 → 2.18.57

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.
@@ -736,6 +736,7 @@ function isReactNative() {
736
736
  return typeof navigator != 'undefined' && navigator.product == 'ReactNative';
737
737
  }
738
738
 
739
+ const doNotTrackValues = ['1', 1, 'yes', true];
739
740
  function doNotTrack() {
740
741
  return (hasNavigator() &&
741
742
  [
@@ -743,7 +744,7 @@ function doNotTrack() {
743
744
  navigator.doNotTrack,
744
745
  navigator.msDoNotTrack,
745
746
  window.doNotTrack,
746
- ].some((value) => !!value));
747
+ ].some((value) => doNotTrackValues.indexOf(value) !== -1));
747
748
  }
748
749
 
749
750
  const Version = 'v15';