1 | export function isFlexSupported() {
|
2 | if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
|
3 | const { documentElement } = window.document;
|
4 | return 'flex' in documentElement.style ||
|
5 | 'webkitFlex' in documentElement.style ||
|
6 | 'Flex' in documentElement.style ||
|
7 | 'msFlex' in documentElement.style;
|
8 | }
|
9 | return false;
|
10 | }
|