aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/websocket.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/websocket.rs')
-rw-r--r--components/script/dom/websocket.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/websocket.rs b/components/script/dom/websocket.rs
index 5914ff7ea89..dd49f62d247 100644
--- a/components/script/dom/websocket.rs
+++ b/components/script/dom/websocket.rs
@@ -498,7 +498,7 @@ impl Runnable for ConnectionEstablishedTask {
}
// Step 6.
- ws.upcast().fire_simple_event("open");
+ ws.upcast().fire_event(atom!("open"));
}
}
@@ -548,7 +548,7 @@ impl Runnable for CloseTask {
// Step 2.
if self.failed {
- ws.upcast().fire_simple_event("error");
+ ws.upcast().fire_event(atom!("error"));
}
// Step 3.