# Detect platform - Mac or Windows

**URL:** <https://devforum.zoom.us/t/detect-platform-mac-or-windows/73181>\
**Category:** Zoom Apps\
**Created:** [July 28, 2022, 6:34pm UTC](https://devforum.zoom.us/t/detect-platform-mac-or-windows/73181 "2022-07-28T18:34:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bridger](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bridger/32/34722_2.png) [@bridger](https://devforum.zoom.us/u/bridger)\
**Post date:** [July 28, 2022, 6:34pm UTC](https://devforum.zoom.us/t/detect-platform-mac-or-windows/73181/1 "2022-07-28T18:34:02Z")

</div>

We are working on keyboard commands in our app and need detect whether the user has a Mac (and uses the Command key) or Windows (and uses the CTRL key). The Zoom App user agent masks which platform they are on. Is there another method we can use to detect whether the user is on a Mac?

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [August 3, 2022, 8:31pm UTC](https://devforum.zoom.us/t/detect-platform-mac-or-windows/73181/2 "2022-08-03T20:31:13Z")

</div>

@bridger Try using `window.navigator.platform`:

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/d/2db00d7fbf6bb03a773956831d9c67237c057a72.png)

> <https://stackoverflow.com/questions/10527983/best-way-to-detect-mac-os-x-or-windows-computers-with-javascript-or-jquery>
