From 6bf2dd91380e19ddc1fcfde21d984321ab7fbd11 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Mon, 7 Feb 2011 22:32:36 +0100 Subject: [PATCH] ExtensionSystem: pass the metadata object to extensions This allows using metadata.json as a configuration point (for example for installation prefix). https://bugzilla.gnome.org/show_bug.cgi?id=621017 --- js/ui/extensionSystem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js index 8a514a53f..577328350 100644 --- a/js/ui/extensionSystem.js +++ b/js/ui/extensionSystem.js @@ -150,7 +150,7 @@ function loadExtension(dir, enabled, type) { return; } try { - extensionModule.main(); + extensionModule.main(meta); } catch (e) { if (stylesheetPath != null) theme.unload_stylesheet(stylesheetPath);