Created
May 25, 2022 12:12
-
-
Save jensgro/e694b341e72916a31d07bbaa5d8acc3d to your computer and use it in GitHub Desktop.
soll testen, ob es sich um ein mobiles Device handelt
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
var isMobile = function() { | |
return /iPhone|iPad|iPod|Android/i.test(navigator.userAgent); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment