diff options
Diffstat (limited to 'components/script/dom/rtcpeerconnection.rs')
-rw-r--r-- | components/script/dom/rtcpeerconnection.rs | 10 |
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) } } |