You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
696 B
18 lines
696 B
import Vue from 'vue'
|
|
|
|
// Development environment
|
|
export const isProd = process.env.NODE_ENV === 'production'
|
|
|
|
// Browser environment sniffing
|
|
export const inBrowser = !Vue.prototype.$isServer
|
|
export const UA = inBrowser
|
|
export const isAndroid = UA
|
|
export const isIOS = UA
|
|
export const root = typeof window !== 'undefined' ? window : global
|
|
|
|
|
|
// export const inBrowser = !Vue.prototype.$isServer || typeof window !== 'undefined'
|
|
// export const UA = inBrowser && window.navigator.userAgent.toLowerCase()
|
|
// export const isAndroid = UA && UA.indexOf('android') > 0
|
|
// export const isIOS = UA && /iphone|ipad|ipod|ios/.test(UA)
|
|
// export const root = typeof window !== 'undefined' ? window : global
|