[tor-commits] [flashproxy/master] Document where console.debug goes to.

dcf at torproject.org dcf at torproject.org
Sun Jan 20 11:19:53 UTC 2013


commit 7d5f6f19ec920233be450836fd702e24f1db6a2a
Author: David Fifield <david at bamsoftware.com>
Date:   Sun Jan 20 03:19:16 2013 -0800

    Document where console.debug goes to.
---
 proxy/flashproxy.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js
index 232b500..8cf086f 100644
--- a/proxy/flashproxy.js
+++ b/proxy/flashproxy.js
@@ -94,10 +94,12 @@ function puts(s) {
     if (debug_div) {
         var at_bottom;
 
+        /* This shows up in the Web Console in Firefox. */
+        console.debug(s);
+
         /* http://www.w3.org/TR/cssom-view/#element-scrolling-members */
         at_bottom = (debug_div.scrollTop + debug_div.clientHeight === debug_div.scrollHeight);
         debug_div.appendChild(document.createTextNode(s + "\n"));
-        console.debug(s);
         if (at_bottom)
             debug_div.scrollTop = debug_div.scrollHeight;
     }



More information about the tor-commits mailing list