aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/serviceworkerregistration.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-09-27 14:07:45 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 20:59:10 +0200
commit3e5c0c386c425e51067038228561e78d10c80a53 (patch)
treeaf205e63a1b3f7c582176e2a9268dd71b1ebd36b /components/script/dom/serviceworkerregistration.rs
parent38273fe7a83313649384a6f265ee9ab816287b18 (diff)
downloadservo-3e5c0c386c425e51067038228561e78d10c80a53.tar.gz
servo-3e5c0c386c425e51067038228561e78d10c80a53.zip
Introduce GlobalScope::get_next_worker_id
Diffstat (limited to 'components/script/dom/serviceworkerregistration.rs')
-rw-r--r--components/script/dom/serviceworkerregistration.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/serviceworkerregistration.rs b/components/script/dom/serviceworkerregistration.rs
index b0580457f1c..bc089c18dac 100644
--- a/components/script/dom/serviceworkerregistration.rs
+++ b/components/script/dom/serviceworkerregistration.rs
@@ -57,7 +57,7 @@ impl ServiceWorkerRegistration {
pipeline_id: Some(global.pipeline_id())
};
- let worker_id = global.get_next_worker_id();
+ let worker_id = global.as_global_scope().get_next_worker_id();
let init = prepare_workerscope_init(global, None);
ScopeThings {
script_url: script_url,