mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
Add plugin-specific sections in settings.json
Settings for specific plugins are written down as below: { ... "ep_pluginname": { "foo":"bar" } ... }
This commit is contained in:
parent
2cf46d3964
commit
b0099a4aba
1 changed files with 2 additions and 1 deletions
|
@ -135,7 +135,8 @@ for(var i in settings)
|
||||||
}
|
}
|
||||||
|
|
||||||
//we know this setting, so we overwrite it
|
//we know this setting, so we overwrite it
|
||||||
if(exports[i] !== undefined)
|
//or it's a settings hash, specific to a plugin
|
||||||
|
if(exports[i] !== undefined || i.indexOf('ep_')==0)
|
||||||
{
|
{
|
||||||
exports[i] = settings[i];
|
exports[i] = settings[i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue