I have a web product (Java) that is developed by another team. In the produce I use the below Javascript for checking the browser is 64 or 32 bit.
if (navigator.userAgent.indexOf("WOW64") != -1)
{
alert("This is a 32 bit browser");
}
else if (navigator.userAgent.indexOf("Win64") != -1)
{
alert("This is a 64 bit browser");
}
else
{
alert("This is a 32 bit OS");
}
Whenever I access that product using a 64-bit browser, it says that this browser is a 32-bit one. How can I fix this?