mirror of
https://github.com/servo/servo.git
synced 2025-08-01 11:40:30 +01:00
Auto merge of #7582 - paulrouget:navigator.platform, r=jdm
implement navigator.platform Fix #7573 I used this as a reference: http://stackoverflow.com/questions/19877924/what-is-the-list-of-possible-values-for-navigator-platform-as-of-today <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7582) <!-- Reviewable:end -->
This commit is contained in:
commit
c356593fd3
3 changed files with 36 additions and 3 deletions
|
@ -22,8 +22,19 @@ pub fn AppCodeName() -> DOMString {
|
|||
"Mozilla".to_owned()
|
||||
}
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
pub fn Platform() -> DOMString {
|
||||
"".to_owned()
|
||||
"Win32".to_owned()
|
||||
}
|
||||
|
||||
#[cfg(any(target_os = "android", target_os = "linux"))]
|
||||
pub fn Platform() -> DOMString {
|
||||
"Linux".to_owned()
|
||||
}
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
pub fn Platform() -> DOMString {
|
||||
"Mac".to_owned()
|
||||
}
|
||||
|
||||
pub fn UserAgent() -> DOMString {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue