Should be able to use `window.site.platform` here that get's set in bedrock's `site.js`:

https://github.com/mozilla/bedrock/blob/master/media/js/base/site.js#L83