[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [flashproxy/master] Formatting.
commit 5d30532d3c122feecd315fa6b15ab88823824679
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Tue Mar 12 22:41:52 2013 -0700
Formatting.
---
proxy/flashproxy.js | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js
index ddd9de3..31a1f60 100644
--- a/proxy/flashproxy.js
+++ b/proxy/flashproxy.js
@@ -928,14 +928,14 @@ function repr(x) {
}
}
-/* Do we seem to be running in Tor Browser? Check the user-agent string, and no listing of supported MIME types. */
-var TBB_UA = [
+/* Do we seem to be running in Tor Browser? Check the user-agent string and for
+ no listing of supported MIME types. */
+var TBB_UAS = [
"Mozilla/5.0 (Windows NT 6.1; rv:10.0) Gecko/20100101 Firefox/10.0",
- "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0"
+ "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0",
];
-
function is_likely_tor_browser() {
- return TBB_UA.indexOf(window.navigator.userAgent) > -1
+ return TBB_UAS.indexOf(window.navigator.userAgent) > -1
&& (window.navigator.mimeTypes && window.navigator.mimeTypes.length === 0);
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits