Simplify javascript used in the Netscape plugins panel a little

This commit is contained in:
Christian Dywan 2009-11-13 18:40:17 +01:00
parent 5238431d84
commit 247848c6a9

View file

@ -255,8 +255,7 @@ midori_plugins_init (MidoriPlugins* plugins)
FIXME: Ensure separators contained in the string can't break it */ FIXME: Ensure separators contained in the string can't break it */
gchar* value = sokoke_js_script_eval (js_context, gchar* value = sokoke_js_script_eval (js_context,
"function plugins (l) { var f = new Array (); for (i in l) " "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); "plugins (navigator.plugins)", NULL);
gchar** items = g_strsplit (value, ",", 0); gchar** items = g_strsplit (value, ",", 0);
guint i = 0; guint i = 0;