|
@@ -23,10 +23,11 @@ document.body.appendChild(audioNode)
|
|
|
|
|
|
const uaParser = new UAParser()
|
|
|
const uaInfo = uaParser.getResult()
|
|
|
-console.log(uaInfo)
|
|
|
+console.log('user agent: ', uaInfo)
|
|
|
Vue.prototype.$uaInfo = uaInfo
|
|
|
if (uaInfo.device.type === 'mobile') {
|
|
|
Vue.prototype.$isMobile = true
|
|
|
+ document.getElementById('app').classList.add('mobile')
|
|
|
} else {
|
|
|
Vue.prototype.$isMobile = false
|
|
|
}
|