mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-04 14:45:47 +01:00
Fix displaying the labels of our sidebar entries in :sbar completion before the menu has been opened.
This commit is contained in:
@@ -311,7 +311,7 @@ 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.label, ""]);
|
||||
context.completions = Array.map(menu.childNodes, function (n) [n.getAttribute("label"), ""]);
|
||||
};
|
||||
|
||||
completion.addUrlCompleter("l",
|
||||
|
||||
Reference in New Issue
Block a user