fleet/frontend/utilities/isMacOS.js
Mike Stone 23ffa5be62 Query side panel (#269)
* QuerySidePanel component

* Adds all osquery table names to ace editor mode

* kolide theme for strings

* Detect OS from browser

* Show utility and specs availability as 'All Platforms'

* Show column description as alt text
2016-10-11 11:32:39 -04:00

7 lines
160 B
JavaScript

export default () => {
const { navigator } = global.window;
const macOSRegex = /(Mac|iPhone|iPod|iPad)/i;
return macOSRegex.test(navigator.platform);
};