all files / src/util/ env.js

100% Statements 4/4
100% Branches 6/6
100% Functions 0/0
100% Lines 4/4
1 2 3 4 5 6   
// 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