mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 16:04:12 +01:00
Fix toggling the same.
This commit is contained in:
@@ -213,8 +213,12 @@ var Config = Module("config", ConfigBase, {
|
||||
let menu = document.getElementById("viewSidebarMenu");
|
||||
|
||||
for (let [, panel] in Iterator(menu.childNodes))
|
||||
if (compare(panel.label, args[0]))
|
||||
return panel.doCommand();
|
||||
if (compare(panel.getAttribute("label"), args[0])) {
|
||||
let elem = document.getElementById(panel.observes);
|
||||
if (elem)
|
||||
elem.doCommand();
|
||||
return;
|
||||
}
|
||||
|
||||
return dactyl.echoerr("No sidebar " + args[0] + " found");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user