Namespace goog.labs.userAgent.util
code »Show:
Global Functions
code »goog.labs.userAgent.util.extractVersionTuples ( userAgent ) ⇒ !Array
Parses the user agent into tuples for each section.
!Array
Parameters |
---|
|
Returns |
|
Gets the native userAgent string from navigator if it exists.
If navigator or navigator.userAgent string is missing, returns an empty
string.
code »goog.labs.userAgent.util.getNavigator_ ( ) ⇒ Navigator
Getter for the native navigator.
This is a separate function so it can be stubbed out in testing.
Navigator
Returns |
---|
|
Parameters |
---|
|
Returns |
|
Parameters |
---|
|
Returns |
|
code »goog.labs.userAgent.util.setUserAgent ( opt_userAgent )Applications may override browser detection on the built in
navigator.userAgent object by setting this string. Set to null to use the
browser object instead.
Parameters |
---|
|