IBrowser
js
{
name: "",
version: "",
major: "",
type: ""
}Properties
name?: string
The browser name.
TIP
See the list of browser names.
version?: string
The full browser version, or undefined if no version is found.
major?: string
The first numeric component of version:
version | major | Explanation |
|---|---|---|
"123.0.1", "v123.0.1" | "123" | Numeric characters from the first component of version |
"XP", "alpha.1" | "" | Empty string when no numeric in the first component |
undefined | undefined | undefined when no version found |
type?: string
The browser type, such as email, inapp, or crawler.
TIP
- See the list of browser types.
- Also see the extensions submodule for more examples.
Inherited methods
is(), toString(), withClientHints(), and withFeatureCheck() are inherited from IData.
