Skip to main content

Module device

Module device 

Source
Expand description

Browser, operating system and device class of a person’s browser, from its User-Agent — and from Chromium’s default client hints (Sec-CH-UA-Platform, Sec-CH-UA-Mobile), which win when present because Chromium freezes those parts of its User-Agent. Families only; versions aren’t kept.

Known limit: iPad Safari sends a macOS desktop User-Agent, so it counts as a desktop Mac.

Structs§

Device
What a browser runs on.

Functions§

parse
The device of a browser: user_agent and, when sent, the Sec-CH-UA-Platform and Sec-CH-UA-Mobile hints.