I know you should do feature detection where possible, but can you detect in Javascript if the browser is the Microsoft Edge browser?
I maintain an old product and I
Everyone seems to be saying the same thing here, except no one has provided a solid 1 liner solution.
So from this answer, https://stackoverflow.com/a/32107845/584147
Which simply says that,
I have turned this into a simple 1 liner for anyone else who ends up here and in need of it.
var isieEdge = (navigator.appName == "Netscape") && (navigator.appVersion.indexOf('Trident') === -1); // IE Edge
alert(isieEdge);