mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Begin embeddable snowflake badge (issue #16)
This commit is contained in:
parent
a915758275
commit
7677707249
4 changed files with 55 additions and 11 deletions
|
@ -59,7 +59,7 @@ class ProxyPair
|
|||
channel.onopen = =>
|
||||
log 'Data channel opened!'
|
||||
snowflake.state = MODE.WEBRTC_READY
|
||||
$msglog.className = 'active';
|
||||
$msglog.className = 'active' if $msglog
|
||||
# This is the point when the WebRTC datachannel is done, so the next step
|
||||
# is to establish websocket to the server.
|
||||
@connectRelay()
|
||||
|
@ -67,7 +67,7 @@ class ProxyPair
|
|||
log 'Data channel closed.'
|
||||
Status.set 'disconnected.'
|
||||
snowflake.state = MODE.INIT
|
||||
$msglog.className = ''
|
||||
$msglog.className = '' if $msglog
|
||||
# Change this for multiplexing.
|
||||
snowflake.reset()
|
||||
channel.onerror = -> log 'Data channel error!'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue