mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Merge 089640a217
into d42fe20403
This commit is contained in:
commit
aad9092406
1 changed files with 1 additions and 5 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue