Skip to main content

parse_device_name

Function parse_device_name 

Source
pub fn parse_device_name(user_agent: &str) -> String
Expand description

Derive a human-readable device name from the User-Agent string.

Returns a string such as "Chrome on macOS" or "Safari on iPhone".