mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
First step toward iOS Support
This commit is contained in:
parent
8ca9542de6
commit
1a447c6984
7 changed files with 22 additions and 15 deletions
|
@ -36,6 +36,11 @@ pub fn Platform() -> DOMString {
|
|||
DOMString::from("Mac")
|
||||
}
|
||||
|
||||
#[cfg(target_os = "ios")]
|
||||
pub fn Platform() -> DOMString {
|
||||
DOMString::from("iOS")
|
||||
}
|
||||
|
||||
pub fn UserAgent() -> DOMString {
|
||||
DOMString::from(&*opts::get().user_agent)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue