Explorar o código

Docs: mention that core plugins can be whitelisted in two places

JC Brand %!s(int64=6) %!d(string=hai) anos
pai
achega
3d2a8e64f0
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      docs/source/plugin_development.rst

+ 4 - 0
docs/source/plugin_development.rst

@@ -115,6 +115,10 @@ If you're adding a "core" plugin, which means a plugin that will be
 included in the default, open-source version of converse.js, then you'll
 instead whitelist the plugin by adding its name to the `core_plugins` array in
 `./src/headless/converse-core.js <https://github.com/jcbrand/converse.js/blob/master/src/headless/converse-core.js>`_.
+or the `WHITELISTED_PLUGINS` array in `./src/converse.js <https://github.com/jcbrand/converse.js/blob/master/src/converse.js>`_.
+
+Where you add it depends on whether your plugin is part of the headless build
+(which means it doesn't contain any view code) or not.
 
 Security and access to the inner workings
 -----------------------------------------