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

[tor-commits] [flashproxy/master] Insert badge at the end of document.body, not document.



commit c836e4ff1a7143983bf9649564134526ac1b59b4
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Wed Mar 20 08:47:56 2013 -0700

    Insert badge at the end of document.body, not document.
    
    According to #8300, the badge wasn't visible in the document (but still
    ran) with a combination of Chrome and AdBlock.
---
 proxy/flashproxy.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js
index 2fa6c99..25cf9bd 100644
--- a/proxy/flashproxy.js
+++ b/proxy/flashproxy.js
@@ -1014,7 +1014,7 @@ function flashproxy_badge_insert() {
 
     /* http://intertwingly.net/blog/2006/11/10/Thats-Not-Write for this trick to
        insert right after the <script> element in the DOM. */
-    e = document;
+    e = document.body;
     while (e.lastChild && e.lastChild.nodeType === 1) {
         e = e.lastChild;
     }

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