Skip to content

matori/ubu.detect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ubu.detect

Browser detection and a little something extra.

Result Object

result = {
  browser: {
    ieVer: 0,
    ieMode: 0,
    ie: false,
    edge: false,
    firefox: false,
    chrome: false,
    safari: false,
    operaPresto: false,
    androidChromeWebView: false,
    androidWebkit: false,
    blackberryMidp: false,
    blackberryWebkit: false,
    nintendoOpera: false,
    nintendoBrowser: false,
    psBrowser: false,
    chromeVer: 0,
    webkitVer: 0,
    unknownWebkit: false,
    unknown: false
  },
  platform: {
    windows: false,
    mac: false,
    linux: false,
    android: false,
    ios: false,
    blackberry: false,
    firefoxOs: false,
    iphone: false,
    ipad: false,
    ipod: false,
    nintendoDsi: false,
    nintendo3ds: false,
    newNintendo3ds: false,
    nintendoWii: false,
    nintendoWiiU: false,
    ps4: false,
    ps3: false,
    psp: false,
    xbox: false,
    unknown: false
  },
  uaString: {
    mobile: false,
    phone: false,
    tablet: false
  }
};

License

MIT

About

Browser detection and a little something extra.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published