1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-18 02:24:12 +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",
function (args)
{
args = args.string;
let arg = args.literalArg;
// 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();
return;
@@ -372,14 +372,14 @@ const config = { //{{{
for (let [,panel] in Iterator(menu.childNodes))
{
if (panel.label == args)
if (panel.label == arg)
{
panel.doCommand();
return;
}
}
liberator.echoerr("No sidebar " + args + " found");
liberator.echoerr("No sidebar " + arg + " found");
},
{
argCount: "1",