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.
 
 

17 lines
470 B

import './index.less';
function isFlexSupported(style) {
return 'flex' in style ||
'webkitFlex' in style ||
'MozFlex' in style;
}
if (typeof window !== undefined && window.document && window.document.documentElement) {
const { documentElement } = window.document;
const NO_FLEX = 'no-flex';
if (!isFlexSupported(documentElement.style) &&
documentElement.className.indexOf(NO_FLEX) === -1) {
documentElement.className += ` ${NO_FLEX}`;
}
}