mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-23 02:53:29 +00:00
Fix Plugins.listAll to handle strings
This commit is contained in:
@@ -12,6 +12,10 @@ var DEFAULT_PLUGINS = require('../constants/defaultPlugins');
|
||||
@return {OrderedMap<Plugin>}
|
||||
*/
|
||||
function listAll(plugins) {
|
||||
if (is.string(plugins)) {
|
||||
plugins = Immutable.List(plugins.split(','));
|
||||
}
|
||||
|
||||
// Convert to an ordered map
|
||||
plugins = plugins.map(function(plugin) {
|
||||
if (is.string(plugin)) {
|
||||
|
||||
Reference in New Issue
Block a user