mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
use coffeelint
This commit is contained in:
parent
7e5e9f9f5f
commit
bc1e147ca2
7 changed files with 179 additions and 25 deletions
|
@ -69,7 +69,8 @@ class Snowflake
|
|||
|
||||
rateLimitBytes = undefined
|
||||
if 'off' != query['ratelimit']
|
||||
rateLimitBytes = Params.getByteCount(query, 'ratelimit', DEFAULT_RATE_LIMIT)
|
||||
rateLimitBytes = Params.getByteCount(query, 'ratelimit',
|
||||
DEFAULT_RATE_LIMIT)
|
||||
if undefined == rateLimitBytes
|
||||
@rateLimit = new DummyRateLimit()
|
||||
else
|
||||
|
@ -125,7 +126,7 @@ class Snowflake
|
|||
params.push ['transport', 'webrtc']
|
||||
|
||||
makeProxyPair: (relay) ->
|
||||
pair = new ProxyPair(null, relay, @rateLimit);
|
||||
pair = new ProxyPair null, relay, @rateLimit
|
||||
@proxyPairs.push pair
|
||||
pair.onCleanup = (event) =>
|
||||
# Delete from the list of active proxy pairs.
|
||||
|
@ -224,7 +225,7 @@ init = ->
|
|||
|
||||
$input = document.getElementById('input')
|
||||
$input.focus()
|
||||
$input.onkeydown = (e) => $send.onclick() if 13 == e.keyCode # enter
|
||||
$input.onkeydown = (e) -> $send.onclick() if 13 == e.keyCode # enter
|
||||
|
||||
snowflake = new Snowflake()
|
||||
window.snowflake = snowflake
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue