mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-25 09:15:19 +03:00
feat(utilities): add isUsingMac utility
This commit is contained in:
parent
edb793b6ae
commit
018edb60cc
@ -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