How to check using javascript if the user visiting my website is doing so using Xiaomi’s native – Mi Browser.
Advertisement
Answer
Look at the useragent
console.log(navigator.userAgent.indexOf(" Mi ") != -1 ? "MI":"Not MI")
How to check using javascript if the user visiting my website is doing so using Xiaomi’s native – Mi Browser.
Look at the useragent
console.log(navigator.userAgent.indexOf(" Mi ") != -1 ? "MI":"Not MI")