diff --git a/senpy/static/js/main.js b/senpy/static/js/main.js index cf9f2f1..0da121e 100644 --- a/senpy/static/js/main.js +++ b/senpy/static/js/main.js @@ -31,6 +31,9 @@ $(document).ready(function() { html=""; var availablePlugins = document.getElementById('availablePlugins'); plugins = response.plugins; + if (! $.isArray(plugins)) { + plugins = [plugins] + } for (r in plugins){ plugin = plugins[r] if (plugin["name"]){