mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Introduce GlobalScope::script_chan
This commit is contained in:
parent
71236e168a
commit
a7305b7fc4
4 changed files with 19 additions and 14 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue