Commit 0c5de6ce authored by Eric Rosenbaum's avatar Eric Rosenbaum

Detect mac vs windows

parent 287bc840
......@@ -10,8 +10,15 @@ class ExtensionLanding extends React.Component {
'onSetOS'
]);
let detectedOS = OS_ENUM.WINDOWS;
if (window.navigator && window.navigator.platform) {
if (window.navigator.platform === 'MacIntel') {
detectedOS = OS_ENUM.MACOS;
}
}
this.state = {
OS: OS_ENUM.WINDOWS
OS: detectedOS
};
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment