[tor-commits] [pluggable-transports/snowflake-webext] 06/15: refactor: a bit of syntaxic sugar

gitolite role git at cupani.torproject.org
Wed Nov 9 14:40:55 UTC 2022


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 at protonmail.com>
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.


More information about the tor-commits mailing list