False Mobile Detection
Closed this issue ยท 3 comments
I have laptop with a touch display. When the script executes it thinks it is a mobile browser.
Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; MAGWJS; rv:11.0) like Gecko
To fix I removed the word touch from regular expression. I am unsure what this might of excluded for real mobile devices.
Thanks for the report! It appears that "Touch" is not that reliable, thanks to touch-screen Windows laptops. A quick Google search has revealed that Microsoft has documentation on their user agent strings -- they say that "ARM" should be present on mobile devices. So perhaps "Windows" and "ARM" would better represent Windows mobile. I'll do a bit more research.
Adding more notes --
The aforementioned MS documentation is specific to IE10.
๐ This issue has been resolved in version 1.0.0 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐