Created
December 14, 2015 13:50
-
-
Save konratnox/da8e357427a4e739ea88 to your computer and use it in GitHub Desktop.
Проверка устройства пользователя
This file contains 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
Для проверки устройства пользователя пишем | |
var ifDevice = navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i) != null; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment