packages/mip/src/util/hash.js
function ssEnabled () {
  let support = false
  try {
    window.sessionStorage.setItem('_t', 1)
    window.sessionStorage.removeItem('_t')
    support = true
  } catch (e) {}

  return support
}
function ssEnabled () {
  let support = false
  try {
    window.sessionStorage.setItem('_t', 1)
    window.sessionStorage.removeItem('_t')
    support = true
  } catch (e) {}

  return support
}
function ssEnabled ( ) { let support = false try { window . sessionStorage . setItem ( '_t' , 1 ) window . sessionStorage . removeItem ( '_t' ) support = true } catch ( e ) { } return support }
test ss is available

@return {boolean} whether enabled or not
test ss is available