[tor-commits] [flashproxy/master] Formatting.
dcf at torproject.org
dcf at torproject.org
Wed Mar 13 05:46:33 UTC 2013
commit 5d30532d3c122feecd315fa6b15ab88823824679
Author: David Fifield <david at bamsoftware.com>
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);
}
More information about the tor-commits
mailing list