diff --git a/common/utilities.js b/common/utilities.js index c1214d19..7c68c09a 100644 --- a/common/utilities.js +++ b/common/utilities.js @@ -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; +};