summaryrefslogtreecommitdiff
path: root/src/static/js/pluginfw/installer.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/js/pluginfw/installer.js')
-rw-r--r--src/static/js/pluginfw/installer.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/static/js/pluginfw/installer.js b/src/static/js/pluginfw/installer.js
index e5602616..9f7ac939 100644
--- a/src/static/js/pluginfw/installer.js
+++ b/src/static/js/pluginfw/installer.js
@@ -84,7 +84,14 @@ exports.search = function(searchTerm, maxCacheAge, cb) {
for (var pluginName in results) { // for every available plugin
if (pluginName.indexOf(plugins.prefix) != 0) continue; // TODO: Also search in keywords here!
- if(searchTerm && !~pluginName.toLowerCase().indexOf(searchTerm) && !~results[pluginName].description.toLowerCase().indexOf(searchTerm)) continue;
+ if(searchTerm && !~results[pluginName].name.toLowerCase().indexOf(searchTerm)
+ && (typeof results[pluginName].description != "undefined" && !~results[pluginName].description.toLowerCase().indexOf(searchTerm) )
+ ){
+ if(typeof results[pluginName].description === "undefined"){
+ console.debug('plugin without Description: %s', results[pluginName].name);
+ }
+ continue;
+ }
res[pluginName] = results[pluginName];
}
cb && cb(null, res)