function modalIsOpen() {
  if (typeof window === 'undefined') {
    return false;
  }

  return /auth(?:success|error)/.test(window.location.search)
    || window.location.hash === '#signup';
}
/**
 * Hacky way to determine if modal is open based on current location
 *
 * @return {Bool}
 */
Hacky way to determine if modal is open based on current location
@return {Bool}
Hacky way to determine if modal is open based on current location @return { Bool }
function modalIsOpen() {
  if (typeof window === 'undefined') {
    return false;
  }
  return /auth(?:success|error)/.test(window.location.search)
    || window.location.hash === '#signup';
}
function modalIsOpen ( ) { if ( typeof window === 'undefined' ) { return false ; } return / auth(?:success|error) / . test ( window . location . search ) || window . location . hash === '#signup' ; }
Hacky way to determine if modal is open based on current location
 @return {Bool}
Hacky way to determine if modal is open based on current location @return { Bool }