feat(utilities): add isUsingMac utility

This commit is contained in:
Aminejv 2022-09-23 17:37:41 +01:00
parent e60908f1e8
commit 982a31ef51

View File

@ -214,3 +214,10 @@ export const cloneElementWithJsx = (element, config, ...children) => {
...children
);
};
export const isUsingMac = () => {
if (typeof window !== "undefined") {
return window.navigator.appVersion.indexOf("Mac") != -1;
}
return false;
};