Test if Mac or PC with JavaScript
Tue Jun 23 2020 09:04:03 GMT+0000 (Coordinated Universal Time)
Saved by @Amna #javascript
User Agent testing sucks, but sometimes you need it for subtle things. In my case I was using it to adjust what I was showing for keyboard shortcut keys (Command or Control). Nothing super major.
https://css-tricks.com/snippets/javascript/test-mac-pc-javascript/
Comments