Provide a user agent, if none is provided navigator.useragent
will be used by default.
Provide a string[]
of a browserslist to manually overide the default value: ['last 5 versions', '> 3%', 'not ie <= 11']
Returns the used useragent
Returns returns an object containing:
Returns the mobile device typs (eg. iPhone, Android, etc.)
Only works on mobile devices!
Returns if the browser is up to date using browserslist. Keep the library up-to-date to keep this functionality working properly
Warning: this is general detection if the browser is a modern browser, it is not a replacement of feature detection libraries like mordernizer.
Generated using TypeDoc
DeviceSpecifications
DeviceSpecifications
Provide a user agent, if none is provided
navigator.useragent
will be used by default.Provide a
string[]
of a browserslist to manually overide the default value:['last 5 versions', '> 3%', 'not ie <= 11']