[Xfce4-commits] <midori:master> Simplify javascript used in the Netscape plugins panel a little

Christian Dywan noreply at xfce.org
Fri Nov 13 19:50:01 CET 2009


Updating branch refs/heads/master
         to 247848c6a97e9307d4844594f566923fba66eab1 (commit)
       from 5238431d840e70ec22cc65cbc84e65c1f9247df9 (commit)

commit 247848c6a97e9307d4844594f566923fba66eab1
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Nov 13 18:40:17 2009 +0100

    Simplify javascript used in the Netscape plugins panel a little

 panels/midori-plugins.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/panels/midori-plugins.c b/panels/midori-plugins.c
index 1123676..6d861b4 100644
--- a/panels/midori-plugins.c
+++ b/panels/midori-plugins.c
@@ -255,8 +255,7 @@ midori_plugins_init (MidoriPlugins* plugins)
            FIXME: Ensure separators contained in the string can't break it */
         gchar* value = sokoke_js_script_eval (js_context,
             "function plugins (l) { var f = new Array (); for (i in l) "
-            "{ var t = l[i].name; "
-            "f.push (l[i].name + '|' + l[i].filename); } return f; }"
+            "{ f.push (l[i].name + '|' + l[i].filename); } return f; }"
             "plugins (navigator.plugins)", NULL);
         gchar** items = g_strsplit (value, ",", 0);
         guint i = 0;



More information about the Xfce4-commits mailing list