mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-22 12:24:02 +03:00
feat(utilities): add isUsingMac utility
This commit is contained in:
parent
e60908f1e8
commit
982a31ef51
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user