mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Introduce GlobalScope::devtools_chan
This commit is contained in:
parent
14a0b8d88c
commit
fe6fca9e1f
8 changed files with 33 additions and 38 deletions
|
@ -11,7 +11,7 @@ pub struct Console(());
|
|||
|
||||
impl Console {
|
||||
fn send_to_devtools(global: GlobalRef, level: LogLevel, message: DOMString) {
|
||||
if let Some(chan) = global.devtools_chan() {
|
||||
if let Some(chan) = global.as_global_scope().devtools_chan() {
|
||||
let console_message = prepare_message(level, message);
|
||||
let worker_id = if let GlobalRef::Worker(worker) = global {
|
||||
Some(worker.get_worker_id())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue