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

[tor-commits] [flashproxy/js] Move non-declaration code from flashproxy.js to embed.html.



commit 1278df97b2d84bc26caf113993bd8133ee26b4f0
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Mon Mar 12 09:24:07 2012 -0700

    Move non-declaration code from flashproxy.js to embed.html.
    
    This is for the purpose of including flashproxy.js for testing.
---
 embed.html    |    3 +++
 flashproxy.js |    4 ----
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/embed.html b/embed.html
index de90209..1d6f290 100644
--- a/embed.html
+++ b/embed.html
@@ -20,6 +20,9 @@ body {
 </head>
 <body>
 <script type="text/javascript" src="flashproxy.js"></script>
+<script type="text/javascript">
+flashproxy_badge_insert().start();
+</script>
 <noscript>
 <a href="https://crypto.stanford.edu/flashproxy/"; target="_parent"><img src="badge.png" border="0" alt="I support Internet freedom"></a>
 </noscript>
diff --git a/flashproxy.js b/flashproxy.js
index 2052f5a..7bab9e9 100644
--- a/flashproxy.js
+++ b/flashproxy.js
@@ -119,7 +119,6 @@ function flashproxy_should_disable()
 
 function flashproxy_badge_insert()
 {
-    var fp;
     var e;
 
     if (flashproxy_should_disable()) {
@@ -138,6 +137,3 @@ function flashproxy_badge_insert()
 
     return fp;
 }
-
-fp = flashproxy_badge_insert();
-fp.start();



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