chrisl chrisl - 4 years ago 236
Javascript Question

Microsoft Edge JS userAgent Detection Incomplete

I'm trying to detect when a user is on Microsoft Edge. I have a Windows 10 install running on VirtualBox. When I use the developer tools in Edge's console to check the userAgent string, this is all it returns:


"Mozilla/5.0 (Windows NT 10.0; Win64; x64)"


With Internet Explorer 11 on the same Windows install, the console correctly reports this:


"Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; rv:11.0) like Gecko"


So why is Edge refusing to identify itself? Anyone run into this before?

Answer Source

Well, it seems I've fixed my own issue. I had to setup a new user account on Windows 10. After logging into the new account, Microsoft Edge now reports the userAgent string correctly:

"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240"

Bizarre issue. Hope this is helpful to anyone else who runs across this problem.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download