1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-10 17:35:46 +01:00

use literalArg with :sidebar - this is debatable

This commit is contained in:
Doug Kearns
2008-12-10 17:21:52 +11:00
parent f5a8158d5f
commit dd737ad3c0

View File

@@ -359,10 +359,10 @@ const config = { //{{{
"Open the sidebar window", "Open the sidebar window",
function (args) function (args)
{ {
args = args.string; let arg = args.literalArg;
// focus if the requested sidebar is already open // focus if the requested sidebar is already open
if (document.getElementById("sidebar-title").value == args) if (document.getElementById("sidebar-title").value == arg)
{ {
document.getElementById("sidebar-box").focus(); document.getElementById("sidebar-box").focus();
return; return;
@@ -372,14 +372,14 @@ const config = { //{{{
for (let [,panel] in Iterator(menu.childNodes)) for (let [,panel] in Iterator(menu.childNodes))
{ {
if (panel.label == args) if (panel.label == arg)
{ {
panel.doCommand(); panel.doCommand();
return; return;
} }
} }
liberator.echoerr("No sidebar " + args + " found"); liberator.echoerr("No sidebar " + arg + " found");
}, },
{ {
argCount: "1", argCount: "1",