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:
parent
7810db6b9f
commit
6bf2dd9138
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user