How to detect that browser is running in Safari on iOS 11 via JavaScript? -


i want detect js code in webpage running in safari on ios 11, supports new features.

i can

if (window.navigator.useragent.includes('os 11_0')) {     // ios 11 } 

but believe considered unreliable.

is there feature or hack works on ios 11 , not on other os , can used detect version without inspecting useragent?


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

c++ - Fill edges and center of array/vector with different values -

sql - calculate weighted average for each day and id based on time intervals in PostgreSQL -