[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [pluggable-transports/snowflake-webext] 06/15: refactor: a bit of syntaxic sugar
This is an automated email from the git hooks/post-receive script.
cohosh pushed a commit to branch main
in repository pluggable-transports/snowflake-webext.
commit bf59d5c781e28eb756b850ffccdecb02b987ce4a
Author: WofWca <wofwca@xxxxxxxxxxxxxx>
AuthorDate: Sat Nov 5 17:53:05 2022 +0400
refactor: a bit of syntaxic sugar
---
proxypair.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/proxypair.js b/proxypair.js
index 2532a2e..27e6bcc 100644
--- a/proxypair.js
+++ b/proxypair.js
@@ -41,8 +41,7 @@ class ProxyPair {
/** @private */
this.pc = new RTCPeerConnection(this.pcConfig);
// OnDataChannel triggered remotely from the client when connection succeeds.
- this.pc.ondatachannel = (dc) => {
- const channel = dc.channel;
+ this.pc.ondatachannel = ({ channel }) => {
dbg('Data Channel established...');
this.prepareDataChannel(channel);
/** @private */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits