diff options
author | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-07-30 10:17:06 -0700 |
---|---|---|
committer | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-07-30 10:17:07 -0700 |
commit | 4705548860452cb3e2c0b1532cb04977d8712f27 (patch) | |
tree | 75dd530cdb6b0e5ba32d0e0a2e0f2bd3bb6d4855 /lib/generate/site/index.js | |
parent | 7d51ae36897ef7035bbc901bd9b4fc03038b074a (diff) | |
download | gitbook-4705548860452cb3e2c0b1532cb04977d8712f27.zip gitbook-4705548860452cb3e2c0b1532cb04977d8712f27.tar.gz gitbook-4705548860452cb3e2c0b1532cb04977d8712f27.tar.bz2 |
Fix resource normalization in when loading plugins
Fixes #384
Diffstat (limited to 'lib/generate/site/index.js')
-rw-r--r-- | lib/generate/site/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js index bd1da53..73765ae 100644 --- a/lib/generate/site/index.js +++ b/lib/generate/site/index.js @@ -202,12 +202,12 @@ Generator.prototype.copyAssets = function() { return plugin.copyAssets(pluginAssets) .then(function(copiedStuff) { // Nothing was copied - if(!copiedStuff) return; + if(!copiedStuff) { return; } return that.manifest.addFolder(pluginAssets, "gitbook/plugins/"+plugin.name); }); }) ); - }) + }); }; // Dump search index to disk |