User agent check for Windows device -


i'm using similar following code snippet in apex controller check if accessing website iphone or android phone.

useragent.contains('iphone') || ( useragent.contains('android') && useragent.contains('mobile')); 

can use similar check if using windows device?

according version of categorizr have on hand, following detects windows mobile:

useragent.contains('windows.nt.5') 

i'm not sure if more recent list needs applying


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -