1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 23:42:27 +01:00

Don't complete shadowy sidebar figures.

This commit is contained in:
Doug Kearns
2013-08-14 22:24:00 +10:00
parent f291454e23
commit 8a3f8fda4b

View File

@@ -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) {