Created
October 5, 2021 13:53
-
-
Save itaditya/6e1986773d18bdd35cae5963b587f71f to your computer and use it in GitHub Desktop.
Find if OS is mac or not.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getOs() { | |
const MOD = /Mac|iPod|iPhone|iPad/.test(navigator.platform) ? 'mac' : 'win'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment