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

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



commit 191f6126bd62c68f785020d2fc3473f3ab85323f
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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;



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