implements NavigatorLanguage

This commit is contained in:
Rahul Sharma 2016-03-15 20:25:23 +05:30
parent 37574065e0
commit facf59177c
7 changed files with 23 additions and 17 deletions

View file

@ -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()
}
}