Fix input handler

This commit is contained in:
Arlo Breault 2016-03-18 11:58:01 -07:00
parent afd814773a
commit df2ea126c8
3 changed files with 4 additions and 3 deletions

View file

@ -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",

View file

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

View file

@ -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()