mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
implements NavigatorLanguage
This commit is contained in:
parent
37574065e0
commit
facf59177c
7 changed files with 23 additions and 17 deletions
|
@ -73,4 +73,9 @@ impl NavigatorMethods for Navigator {
|
|||
fn Bluetooth(&self) -> Root<Bluetooth> {
|
||||
self.bluetooth.or_init(|| Bluetooth::new(self.global().r()))
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#navigatorlanguage
|
||||
fn Language(&self) -> DOMString {
|
||||
navigatorinfo::Language()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue