소스 검색

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

JC Brand 6 년 전
부모
커밋
3d2a8e64f0
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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
 -----------------------------------------