[tor-commits] [flashproxy/master] Limit variable scope.
dcf at torproject.org
dcf at torproject.org
Sun Sep 4 21:57:15 UTC 2011
commit 638e4d2d3648a7dea3253a0577df57fd7c2755c2
Author: David Fifield <david at bamsoftware.com>
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];
More information about the tor-commits
mailing list