diff options
author | Arthur Marble <arthur@info9.net> | 2016-09-18 03:41:16 -0500 |
---|---|---|
committer | Arthur Marble <arthur@info9.net> | 2016-09-18 03:41:16 -0500 |
commit | 883902bd972c9ea91cf6b6be74908e87c517b72e (patch) | |
tree | 1c598d19c2770949d3f2fa31b401a0d671212a83 /components/script/dom/navigator.rs | |
parent | dbec9d845472251b73e444d80a493173f11a0482 (diff) | |
download | servo-883902bd972c9ea91cf6b6be74908e87c517b72e.tar.gz servo-883902bd972c9ea91cf6b6be74908e87c517b72e.zip |
Most of the code refactoring needed to be done is done with this commit.
Diffstat (limited to 'components/script/dom/navigator.rs')
-rw-r--r-- | components/script/dom/navigator.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/navigator.rs b/components/script/dom/navigator.rs index 61936c59e5f..b2a4fa81b3b 100644 --- a/components/script/dom/navigator.rs +++ b/components/script/dom/navigator.rs @@ -21,7 +21,7 @@ pub struct Navigator { bluetooth: MutNullableHeap<JS<Bluetooth>>, plugins: MutNullableHeap<JS<PluginArray>>, mime_types: MutNullableHeap<JS<MimeTypeArray>>, - serviceWorker: MutNullableHeap<JS<ServiceWorkerContainer>>, + service_worker: MutNullableHeap<JS<ServiceWorkerContainer>>, } impl Navigator { @@ -31,7 +31,7 @@ impl Navigator { bluetooth: Default::default(), plugins: Default::default(), mime_types: Default::default(), - serviceWorker: Default::default(), + service_worker: Default::default(), } } @@ -105,7 +105,7 @@ impl NavigatorMethods for Navigator { // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#navigator-service-worker-attribute fn ServiceWorker(&self) -> Root<ServiceWorkerContainer> { - self.serviceWorker.or_init(|| ServiceWorkerContainer::new(self.global().r())) + self.service_worker.or_init(|| ServiceWorkerContainer::new(self.global().r())) } // https://html.spec.whatwg.org/multipage/#dom-navigator-cookieenabled |