Get current platform?


Hey can someone review this code and tell me how to proper get platform info?


I modified your codepen to check the current platform. There are probably other ways to do it. If you open the codepen from the device it will alert your device.


The suggested solution from brandyshea doesn’t work for me, but this does: