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@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 */