Blame view

node_modules/better-scroll/src/util/env.js 256 Bytes
aaac7fed   liuqimichale   add
1
2
3
4
5
  // ssr support
  export const inBrowser = typeof window !== 'undefined'
  export const ua = inBrowser && navigator.userAgent.toLowerCase()
  export const isWeChatDevTools = ua && /wechatdevtools/.test(ua)
  export const isAndroid = ua && ua.indexOf('android') > 0