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

[or-cvs] r10276: [darcs-to-svn @ toolbutton insertion check only for ff >= 1. (torbutton/trunk/src/chrome/content)



Author: squires
Date: 2007-05-22 01:26:21 -0400 (Tue, 22 May 2007)
New Revision: 10276

Modified:
   torbutton/trunk/src/chrome/content/torbutton.js
Log:
[darcs-to-svn @ toolbutton insertion check only for ff >= 1.5; prior versions don't like it]

Original author: squires@xxxxxxxxx
Date: 2006-10-29 00:26:26+00:00

Modified: torbutton/trunk/src/chrome/content/torbutton.js
===================================================================
--- torbutton/trunk/src/chrome/content/torbutton.js	2007-05-22 05:26:17 UTC (rev 10275)
+++ torbutton/trunk/src/chrome/content/torbutton.js	2007-05-22 05:26:21 UTC (rev 10276)
@@ -166,8 +166,10 @@
     torbutton_set_panel_style();
 
     // listen for our toolbar button being added so we can initialize it
-    document.getElementById('navigator-toolbox')
-            .addEventListener('DOMNodeInserted', torbutton_init_toolbutton, false);
+    if (geckoVersionCompare("1.8") <= 0) {
+        document.getElementById('navigator-toolbox')
+                .addEventListener('DOMNodeInserted', torbutton_init_toolbutton, false);
+    }
 
     if (!m_wasinited) {
         torbutton_log(5, 'registering pref observer');