mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Fix input handler
This commit is contained in:
parent
afd814773a
commit
df2ea126c8
3 changed files with 4 additions and 3 deletions
|
@ -8,7 +8,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"test": "cake test",
|
||||
"lint": "cake lint"
|
||||
"lint": "cake lint",
|
||||
"build": "cake build"
|
||||
},
|
||||
"author": "Serene Han",
|
||||
"license": "BSD-3-Clause",
|
||||
|
|
|
@ -207,9 +207,9 @@ init = ->
|
|||
broker = new Broker brokerUrl
|
||||
snowflake = new Snowflake broker, ui
|
||||
|
||||
dbg 'Contacting Broker at ' + broker.url
|
||||
log '== snowflake proxy =='
|
||||
log 'Copy-Paste mode detected.' if COPY_PASTE_ENABLED
|
||||
dbg 'Contacting Broker at ' + broker.url if not COPY_PASTE_ENABLED
|
||||
|
||||
relayAddr = Params.getAddress(query, 'relay', DEFAULT_RELAY)
|
||||
snowflake.setRelayAddr relayAddr
|
||||
|
|
|
@ -22,7 +22,7 @@ class UI
|
|||
@$msglog.value = ''
|
||||
|
||||
@$send = document.getElementById('send')
|
||||
@$send.onclick = => { @acceptInput }
|
||||
@$send.onclick = @acceptInput
|
||||
|
||||
@$input = document.getElementById('input')
|
||||
@$input.focus()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue