AEM 6.3 TO detect from desktop or mobile from which the request came in java?
Hi ,
I am using a component twice due to mobile and desktop views .Due to which the same JavaScript is getting called twice.
I am using JavaScript to hide based on css.
I wanted tp know if desktop or mobile view in java code, in this way i will be able to call the component only once based on views using slightly test logic.
Please let me know how to achieve it
Thanks