Add plugin-specific sections in settings.json

Settings for specific plugins are written down as below:
{
  ...
  "ep_pluginname": {
    "foo":"bar"
  }
  ...
}
pull/893/head
Marcel Klehr 2012-10-11 16:22:40 +02:00
parent 2cf46d3964
commit b0099a4aba
1 changed files with 2 additions and 1 deletions

View File

@ -135,7 +135,8 @@ for(var i in settings)
}
//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];
}