Your script is great.
Please add support IE13 and IE14 detection.
Your script determine IE13 and IE14 as Chrome 46.
IE13 UserAgent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586
IE14 UserAgent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/14.14300
I change this part in browser-detection.js:
if ( !! userAgent.match(/trident\/7\./)) {
browser = "ie";
version = 11;
} else if (browserParts && browserParts.length > 2) {
browser = browserParts[1];
version = browserParts[2];
}
with this:
if ( !! userAgent.match(/trident\/7\./)) {
browser = "ie";
version = 11;
} else if (!! userAgent.match(/edge\/13\./)) {
browser = "ie";
version = 13;
} else if(!! userAgent.match(/edge\/14\./)){
browser = "ie";
version = 14;
} else if (browserParts && browserParts.length > 2) {
browser = browserParts[1];
version = browserParts[2];
}
Thanks a lot!!!
Your script is great.
Please add support IE13 and IE14 detection.
Your script determine IE13 and IE14 as Chrome 46.
IE13 UserAgent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586
IE14 UserAgent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/14.14300
I change this part in browser-detection.js:
with this:
Thanks a lot!!!