[FIX] IE11 - callback createTreeWalker doesnt accept acceptNo… (#15157)
parent
3f7989e6b6
commit
9119b3290c
@ -0,0 +1,15 @@ |
||||
export const isIE11 = () => { |
||||
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; |
||||
}; |
@ -0,0 +1 @@ |
||||
../../../node_modules/@rocket.chat/apps-engine |
Loading…
Reference in new issue