[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [flashproxy/js] Break out a proxy_main function for after argument parsing.
commit cace7b86e8a3d21c6705368d9bdae4b559884b5d
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Tue Mar 13 10:42:22 2012 -0700
Break out a proxy_main function for after argument parsing.
---
flashproxy.js | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/flashproxy.js b/flashproxy.js
index ff9b1e6..05674c4 100644
--- a/flashproxy.js
+++ b/flashproxy.js
@@ -106,8 +106,7 @@ function FlashProxy()
this.start = function() {
var query;
- var fac_addr, fac_url;
- var xhr;
+ var fac_addr;
query = parse_query_string(window.location.search.substr(1));
@@ -117,6 +116,13 @@ function FlashProxy()
return;
}
+ this.proxy_main(fac_addr);
+ };
+
+ this.proxy_main = function(fac_addr) {
+ var fac_url;
+ var xhr;
+
this.puts("Using facilitator " + format_addr(fac_addr) + ".");
fac_url = "http://" + encodeURIComponent(fac_addr.host)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits