mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Expose user agent option to DOM navigator interface.
This commit is contained in:
parent
6317905342
commit
eb5532c781
6 changed files with 38 additions and 12 deletions
|
@ -51,6 +51,10 @@ impl<'a> NavigatorMethods for JSRef<'a, Navigator> {
|
|||
fn Platform(self) -> DOMString {
|
||||
NavigatorInfo::Platform()
|
||||
}
|
||||
|
||||
fn UserAgent(self) -> DOMString {
|
||||
NavigatorInfo::UserAgent()
|
||||
}
|
||||
}
|
||||
|
||||
impl Reflectable for Navigator {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue