The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/client/lib/utils/isIE11.ts

15 lines
404 B

export const isIE11: boolean = ((): boolean => {
const { userAgent } = window.navigator;
const msieIdx = userAgent.indexOf('MSIE');
if (msieIdx > 0) {
return parseInt(userAgent.substring(msieIdx + 5, userAgent.indexOf('.', msieIdx))) === 11;
}
// If MSIE detection fails, check the Trident engine version
if (navigator.userAgent.match(/Trident\/7\./)) {
return true;
}
return false;
})();