mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20: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": {
|
"scripts": {
|
||||||
"test": "cake test",
|
"test": "cake test",
|
||||||
"lint": "cake lint"
|
"lint": "cake lint",
|
||||||
|
"build": "cake build"
|
||||||
},
|
},
|
||||||
"author": "Serene Han",
|
"author": "Serene Han",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
|
|
|
@ -207,9 +207,9 @@ init = ->
|
||||||
broker = new Broker brokerUrl
|
broker = new Broker brokerUrl
|
||||||
snowflake = new Snowflake broker, ui
|
snowflake = new Snowflake broker, ui
|
||||||
|
|
||||||
dbg 'Contacting Broker at ' + broker.url
|
|
||||||
log '== snowflake proxy =='
|
log '== snowflake proxy =='
|
||||||
log 'Copy-Paste mode detected.' if COPY_PASTE_ENABLED
|
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)
|
relayAddr = Params.getAddress(query, 'relay', DEFAULT_RELAY)
|
||||||
snowflake.setRelayAddr relayAddr
|
snowflake.setRelayAddr relayAddr
|
||||||
|
|
|
@ -22,7 +22,7 @@ class UI
|
||||||
@$msglog.value = ''
|
@$msglog.value = ''
|
||||||
|
|
||||||
@$send = document.getElementById('send')
|
@$send = document.getElementById('send')
|
||||||
@$send.onclick = => { @acceptInput }
|
@$send.onclick = @acceptInput
|
||||||
|
|
||||||
@$input = document.getElementById('input')
|
@$input = document.getElementById('input')
|
||||||
@$input.focus()
|
@$input.focus()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue