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

[tor-commits] [flashproxy/master] Use console.log, not console.debug, in Internet Explorer.



commit 8ad7433d63bc96e7295b4127b4d9aece69287e24
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Sat Mar 2 02:01:04 2013 -0800

    Use console.log, not console.debug, in Internet Explorer.
    
    IE doesn't appear to have console.debug.
---
 proxy/flashproxy.js |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js
index 193dba3..bf3fce9 100644
--- a/proxy/flashproxy.js
+++ b/proxy/flashproxy.js
@@ -94,8 +94,9 @@ function puts(s) {
     if (debug_div) {
         var at_bottom;
 
-        /* This shows up in the Web Console in Firefox. */
-        console.debug(s);
+        /* This shows up in the Web Console in Firefox and F12 developer tools
+           in Internet Explorer. */
+        (console.debug || console.log).call(console, s);
 
         /* http://www.w3.org/TR/cssom-view/#element-scrolling-members */
         at_bottom = (debug_div.scrollTop + debug_div.clientHeight === debug_div.scrollHeight);

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