diff options
-rw-r--r-- | pentadactyl/content/config.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pentadactyl/content/config.js b/pentadactyl/content/config.js index 1d22bf8f..2dde4bc1 100644 --- a/pentadactyl/content/config.js +++ b/pentadactyl/content/config.js @@ -221,7 +221,8 @@ var Config = Module("config", ConfigBase, { completion.sidebar = function sidebar(context) { let menu = document.getElementById("viewSidebarMenu"); context.title = ["Sidebar Panel"]; - context.completions = Array.map(menu.childNodes, function (n) [n.getAttribute("label"), ""]); + context.completions = Array.filter(menu.childNodes, function (n) n.hasAttribute("label")) + .map(function (n) [n.getAttribute("label"), ""]); }; }, events: function initEvents(dactyl, modules, window) { |