nuxt-modules / device

Nuxt module for detecting device type.
MIT License
886 stars 49 forks source link

Impossible to detect iPhone/Mobile/... #184

Closed Droppix closed 5 months ago

Droppix commented 5 months ago

I use nuxt 3, with your module '@nuxtjs/device'

My page 'test' display as userAgent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.39 Safari/537.36."

alert(navigator.userAgent)

How do I disable the defaultUserAgent, I'd like it to display the original userAgent (Mozilla/5.0 (iPhone; CPU iPhone OS 17_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2 Mobile/15E148 Safari/604.1)