aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/rtcpeerconnection.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/rtcpeerconnection.rs')
-rw-r--r--components/script/dom/rtcpeerconnection.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/components/script/dom/rtcpeerconnection.rs b/components/script/dom/rtcpeerconnection.rs
index 2e7f05f4873..2e568c7a971 100644
--- a/components/script/dom/rtcpeerconnection.rs
+++ b/components/script/dom/rtcpeerconnection.rs
@@ -675,15 +675,9 @@ impl RTCPeerConnectionMethods for RTCPeerConnection {
fn CreateDataChannel(
&self,
label: USVString,
- dataChannelDict: &RTCDataChannelInit,
+ init: &RTCDataChannelInit,
) -> DomRoot<RTCDataChannel> {
- RTCDataChannel::new(
- &self.global(),
- &self.controller,
- label,
- dataChannelDict,
- None,
- )
+ RTCDataChannel::new(&self.global(), &self.controller, label, init, None)
}
}