I am creating an application, desktop and tablet are responsive whereas Mobile is adaptive. So I Have to check the condition based on that I have to render the files dynamically.
I found many user agent code, but no luck. I tried in console for iphone and ipad the word "Mobile" is there, my condition is failing.
Current Useragent:
navigator.userAgent.match(/Mobile/i)
Is there any useragent that is specific to mobile only.