[tor-commits] [flashproxy/master] Whitespace.

dcf at torproject.org dcf at torproject.org
Sun Nov 10 08:12:36 UTC 2013


commit 191f6126bd62c68f785020d2fc3473f3ab85323f
Author: David Fifield <david at bamsoftware.com>
Date:   Sun Nov 10 00:03:28 2013 -0800

    Whitespace.
---
 proxy/flashproxy.js |   19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js
index 8aca4e5..48839ae 100644
--- a/proxy/flashproxy.js
+++ b/proxy/flashproxy.js
@@ -433,19 +433,18 @@ function have_websocket_binary_frames() {
         return false;
 
     browsers = [
-      { idString: "Chrome",  verString: "Chrome",  version: 16 },
-      { idString: "Safari",  verString: "Version", version: 6  },
-      { idString: "Firefox", verString: "Firefox", version: 11 }
+        { idString: "Chrome", verString: "Chrome", version: 16 },
+        { idString: "Safari", verString: "Version", version: 6 },
+        { idString: "Firefox", verString: "Firefox", version: 11 }
     ];
 
     for (var i = 0; i < browsers.length; i++) {
-      reg = "\\b" + browsers[i].idString + "\\b";
-      if (ua.match(new RegExp(reg, "i")) == null)
-          continue;
-      reg = "\\b" + browsers[i].verString + "\\/(\\d+)";
-      matches = ua.match(new RegExp(reg, "i"));
-      return (matches != null
-          && Number(matches[1]) >= browsers[i].version) ? true : false;
+        reg = "\\b" + browsers[i].idString + "\\b";
+        if (ua.match(new RegExp(reg, "i")) == null)
+            continue;
+        reg = "\\b" + browsers[i].verString + "\\/(\\d+)";
+        matches = ua.match(new RegExp(reg, "i"));
+        return (matches != null && Number(matches[1]) >= browsers[i].version) ? true : false;
     }
 
     return false;





More information about the tor-commits mailing list