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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user