[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [snowflake/master] Fix input handler



commit df2ea126c84d301e58f59ea08cc42662ed0a9f9a
Author: Arlo Breault <arlolra@xxxxxxxxx>
Date:   Fri Mar 18 11:58:01 2016 -0700

    Fix input handler
---
 proxy/package.json     | 3 ++-
 proxy/snowflake.coffee | 2 +-
 proxy/ui.coffee        | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/proxy/package.json b/proxy/package.json
index 0a23eb4..b7e44df 100644
--- a/proxy/package.json
+++ b/proxy/package.json
@@ -8,7 +8,8 @@
   },
   "scripts": {
     "test": "cake test",
-    "lint": "cake lint"
+    "lint": "cake lint",
+    "build": "cake build"
   },
   "author": "Serene Han",
   "license": "BSD-3-Clause",
diff --git a/proxy/snowflake.coffee b/proxy/snowflake.coffee
index 9686f30..1cdccda 100644
--- a/proxy/snowflake.coffee
+++ b/proxy/snowflake.coffee
@@ -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
diff --git a/proxy/ui.coffee b/proxy/ui.coffee
index cb25216..c2f898f 100644
--- a/proxy/ui.coffee
+++ b/proxy/ui.coffee
@@ -22,7 +22,7 @@ class UI
     @$msglog.value = ''
 
     @$send = document.getElementById('send')
-    @$send.onclick = => { @acceptInput }
+    @$send.onclick = @acceptInput
 
     @$input = document.getElementById('input')
     @$input.focus()

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits