libraries/tracking-core/helpers/optOut.js
function getLocalStorage() {
  if (!(localStorage && localStorage.getItem)) {
    return null;
  }

  let state = localStorage.getItem(disableStr);

  if (state === 'false') {
    state = false;
  } else if (state === 'true') {
    state = true;
  }

  return state;
}
function getLocalStorage() {
  if (!(localStorage && localStorage.getItem)) {
    return null;
  }

  let state = localStorage.getItem(disableStr);

  if (state === 'false') {
    state = false;
  } else if (state === 'true') {
    state = true;
  }

  return state;
}
function getLocalStorage ( ) { if ( ! ( localStorage && localStorage . getItem ) ) { return null ; } let state = localStorage . getItem ( disableStr ) ; if ( state === 'false' ) { state = false ; } else if ( state === 'true' ) { state = true ; } return state ; }
Gets optOut state from localStorage
@private
@returns {boolean|null} Opt out state in the localstorage
Gets optOut state from localStorage