Skip to content
This repository has been archived by the owner on Dec 2, 2017. It is now read-only.
/ Check-userAgent Public archive

New method for JS window object that checks the userAgent and returns true if a mobile.

License

Notifications You must be signed in to change notification settings

sergiodxa/Check-userAgent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Check user-agent

No Maintenance Intended

This file add a method for the object window in JavaScript who can check the userAgent and return true if is a mobile or false if isn't.

You can use it with:

var result = window.mobilecheck();
if (result == true) {
  // code only for mobile
}
else {
  // code only for not mobile
}

About

New method for JS window object that checks the userAgent and returns true if a mobile.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published