aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/websocket.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-04 00:35:16 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 21:35:48 +0200
commita7305b7fc4e4b9c70e9a5ef43f66a7b6be6731ec (patch)
tree40200177fa4731b3a87a8b9ea3324adf2b224958 /components/script/dom/websocket.rs
parent71236e168ac9c1e85c370be09a5566ec299b7bb6 (diff)
downloadservo-a7305b7fc4e4b9c70e9a5ef43f66a7b6be6731ec.tar.gz
servo-a7305b7fc4e4b9c70e9a5ef43f66a7b6be6731ec.zip
Introduce GlobalScope::script_chan
Diffstat (limited to 'components/script/dom/websocket.rs')
-rw-r--r--components/script/dom/websocket.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/script/dom/websocket.rs b/components/script/dom/websocket.rs
index aa2a61b6c38..ac1cf53b2ae 100644
--- a/components/script/dom/websocket.rs
+++ b/components/script/dom/websocket.rs
@@ -330,8 +330,10 @@ impl WebSocket {
address: address,
};
- let global = self.global();
- global.r().script_chan().send(CommonScriptMsg::RunnableMsg(WebSocketEvent, task)).unwrap();
+ self.global_scope()
+ .script_chan()
+ .send(CommonScriptMsg::RunnableMsg(WebSocketEvent, task))
+ .unwrap();
}
Ok(true)