[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [flashproxy/master] Limit variable scope.
commit 638e4d2d3648a7dea3253a0577df57fd7c2755c2
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Sun Sep 4 14:51:26 2011 -0700
Limit variable scope.
---
swfcat.as | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/swfcat.as b/swfcat.as
index 85a1a1b..dd1ef9b 100644
--- a/swfcat.as
+++ b/swfcat.as
@@ -151,15 +151,16 @@ package
*/
private function should_disable():Boolean
{
- const UA_LIST:Array = [
- /\bmobile\b/i,
- /\bandroid\b/i,
- /\bopera mobi\b/i,
- ];
var ua:String;
ua = ExternalInterface.call("window.navigator.userAgent.toString");
if (ua != null) {
+ const UA_LIST:Array = [
+ /\bmobile\b/i,
+ /\bandroid\b/i,
+ /\bopera mobi\b/i,
+ ];
+
for (var i:uint = 0; i < UA_LIST.length; i++) {
var re:RegExp = UA_LIST[i];
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits