view/shared/assets/js/wb/ads/2.2.6/krux.js
/**
   * Helper function to retrieve krux data from localstorage or cookies.
   *
   * @param {string} n - the name of the property to retrieve
   * @param {string} ns - the namespace the data is stored in.
   * @returns {*}
   */
Helper function to retrieve krux data from localstorage or cookies.
@param {string} n - the name of the property to retrieve
@param {string} ns - the namespace the data is stored in.
Helper function to retrieve krux data from localstorage or cookies . @param { string } n - the name of the property to retrieve @param { string } ns - the namespace the data is stored in .
function retrieve(n, ns) {
    var m, k = ns + n;
    if (w.localStorage) {
      return w.localStorage[k] || '';
    } else if (navigator.cookieEnabled) {
      m = d.cookie.match(k + '=([^;]*)');
      return m && decodeURIComponent(m[1]) || '';
    }
    return '';
  }
function retrieve ( n , ns ) { var m , k = ns + n ; if ( w . localStorage ) { return w . localStorage [ k ] || '' ; } else if ( navigator . cookieEnabled ) { m = d . cookie . match ( k + '=([^;]*)' ) ; return m && decodeURIComponent ( m [ 1 ] ) || '' ; } return '' ; }
Helper function to retrieve krux data from localstorage or cookies.
Helper function to retrieve krux data from localstorage or cookies .