lion/packages/core/src/browserDetection.js
Wessel Loth 954adc5659 fix(button): run regexp once instead of every render cycle
chore: add browserDetection utility to @lion/core

Use it to fix test involving checking the userAgent in LionButton

chore: add browserDetection util to aria element sorting
2020-02-06 11:16:24 +01:00

5 lines
107 B
JavaScript

const isIE11 = /Trident/.test(window.navigator.userAgent);
export const browserDetection = {
isIE11,
};