dist/storage-helper.js
function hasLocalStorage() {
  if (!localstorage) {
    return false;
  }

  try {
    localstorage.setItem('0', '');
    localstorage.removeItem('0');
    return true;
  } catch (error) {
    return false;
  }
}
function hasLocalStorage() {
  if (!localstorage) {
    return false;
  }

  try {
    localstorage.setItem('0', '');
    localstorage.removeItem('0');
    return true;
  } catch (error) {
    return false;
  }
}
function hasLocalStorage ( ) { if ( ! localstorage ) { return false ; } try { localstorage . setItem ( '0' , '' ) ; localstorage . removeItem ( '0' ) ; return true ; } catch ( error ) { return false ; } }
Check if the browser has localStorage
@return {Boolean}
Check if the browser has localStorage