libraries/tracking-core/helpers/optOut.js
function getCookie() {
  if (document.cookie.indexOf(`${disableStr}=true`) > -1) {
    return true;
  } else if (document.cookie.indexOf(`${disableStr}=false`) > -1) {
    return false;
  }

  return null;
}
function getCookie() {
  if (document.cookie.indexOf(`${disableStr}=true`) > -1) {
    return true;
  } else if (document.cookie.indexOf(`${disableStr}=false`) > -1) {
    return false;
  }

  return null;
}
function getCookie ( ) { if ( document . cookie . indexOf ( ` ${ disableStr } ` ) > - 1 ) { return true ; } else if ( document . cookie . indexOf ( ` ${ disableStr } ` ) > - 1 ) { return false ; } return null ; }
Gets optout state from cookie
@private
@returns {boolean|null} OptOut state from the cookie
Gets optout state from cookie