diff options
author | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-07-29 23:45:54 -0700 |
---|---|---|
committer | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-07-29 23:45:54 -0700 |
commit | 9f241457bb359af4768e5dbc0c1166b5c92942fe (patch) | |
tree | f912a5ead2b4cda71a1645e050991a8c15780f19 /lib/generate/site/index.js | |
parent | 60a7c28e66c77cd93fd5c60fdea5d0bb07b92b52 (diff) | |
download | gitbook-9f241457bb359af4768e5dbc0c1166b5c92942fe.zip gitbook-9f241457bb359af4768e5dbc0c1166b5c92942fe.tar.gz gitbook-9f241457bb359af4768e5dbc0c1166b5c92942fe.tar.bz2 |
Fix minor issues with new plugin additions
Diffstat (limited to 'lib/generate/site/index.js')
-rw-r--r-- | lib/generate/site/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js index dcc48d7..bd1da53 100644 --- a/lib/generate/site/index.js +++ b/lib/generate/site/index.js @@ -198,11 +198,11 @@ Generator.prototype.copyAssets = function() { .then(function() { return Q.all( _.map(that.plugins.list, function(plugin) { - if (!plugin.hasAssets()) return Q(); - var pluginAssets = path.join(that.options.output, "gitbook/plugins/", plugin.name); return plugin.copyAssets(pluginAssets) - .then(function() { + .then(function(copiedStuff) { + // Nothing was copied + if(!copiedStuff) return; return that.manifest.addFolder(pluginAssets, "gitbook/plugins/"+plugin.name); }); }) |