From 089640a217fd260470dfe118ddad3988652661cd Mon Sep 17 00:00:00 2001 From: Ashwin Naren Date: Sun, 25 May 2025 22:28:00 -0700 Subject: [PATCH] Update prefs.rs --- components/config/prefs.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/config/prefs.rs b/components/config/prefs.rs index 896a4fe0bc4..b69521cec4e 100644 --- a/components/config/prefs.rs +++ b/components/config/prefs.rs @@ -453,11 +453,7 @@ impl UserAgentPlatform { ) }, UserAgentPlatform::Desktop => { - #[cfg(target_arch = "x86_64")] - const ARCHITECTURE: &str = "x86_64"; - // TODO: This is clearly wrong for other platforms. - #[cfg(not(target_arch = "x86_64"))] - const ARCHITECTURE: &str = "i686"; + const ARCHITECTURE: &str = std::env::consts::ARCH; format!( "Mozilla/5.0 (X11; Linux {ARCHITECTURE}; rv:128.0) Servo/{SERVO_VERSION} Firefox/128.0"