summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2013-08-14 22:24:00 +1000
committerDoug Kearns <dougkearns@gmail.com>2013-08-14 22:24:00 +1000
commit8a3f8fda4be693d2b792a7df48cba6f252a48ed7 (patch)
tree86ed3484ad26861dcabf32a25aa1e193e532d3c7
parentf291454e23f4729330c816b5f3bd8abb531b494d (diff)
downloadpentadactyl-8a3f8fda4be693d2b792a7df48cba6f252a48ed7.tar.gz
Don't complete shadowy sidebar figures.
-rw-r--r--pentadactyl/content/config.js3
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) {