diff options
author | Doug Kearns <dougkearns@gmail.com> | 2013-08-14 22:24:00 +1000 |
---|---|---|
committer | Doug Kearns <dougkearns@gmail.com> | 2013-08-14 22:24:00 +1000 |
commit | 8a3f8fda4be693d2b792a7df48cba6f252a48ed7 (patch) | |
tree | 86ed3484ad26861dcabf32a25aa1e193e532d3c7 | |
parent | f291454e23f4729330c816b5f3bd8abb531b494d (diff) | |
download | pentadactyl-8a3f8fda4be693d2b792a7df48cba6f252a48ed7.tar.gz |
Don't complete shadowy sidebar figures.
-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) { |