feat(utilities): add isUsingMac utility

This commit is contained in:
Aminejv 2022-09-23 17:37:41 +01:00
parent edb793b6ae
commit 018edb60cc

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;
};