From: Christian Dywan Date: Fri, 13 Nov 2009 17:40:17 +0000 (+0100) Subject: Simplify javascript used in the Netscape plugins panel a little X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=247848c6a97e9307d4844594f566923fba66eab1;p=midori Simplify javascript used in the Netscape plugins panel a little --- 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;