Guest User

Untitled

a guest
Nov 13th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. /* Determine if user is on mobile */
  2. let mobileUser = false;
  3. if ( /Mobi/i.test(navigator.userAgent) || /Android/i.test(navigator.userAgent)) {
  4. mobileUser = true;
  5. }
Add Comment
Please, Sign In to add comment