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
This commit is contained in:
Giovanni Campagna 2011-02-07 22:32:36 +01:00
parent 7810db6b9f
commit 6bf2dd9138

View File

@ -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);