From 247848c6a97e9307d4844594f566923fba66eab1 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 13 Nov 2009 18:40:17 +0100 Subject: [PATCH] Simplify javascript used in the Netscape plugins panel a little --- panels/midori-plugins.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/panels/midori-plugins.c b/panels/midori-plugins.c index 11236762..6d861b45 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; -- 2.39.5