1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 08:07:59 +01:00

use literalArg in :pagestyle action

This commit is contained in:
Doug Kearns
2008-12-09 01:13:23 +11:00
parent d20578b2a0
commit 6ec66f253f

View File

@@ -508,20 +508,20 @@ function Buffer() //{{{
"Select the author style sheet to apply", "Select the author style sheet to apply",
function (args) function (args)
{ {
args = args.string; let arg = args.literalArg;
let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title); let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title);
if (args && titles.indexOf(args) == -1) if (arg && titles.indexOf(arg) == -1)
{ {
liberator.echoerr("E475: Invalid argument: " + args); liberator.echoerr("E475: Invalid argument: " + arg);
return; return;
} }
if (options["usermode"]) if (options["usermode"])
options["usermode"] = false; options["usermode"] = false;
window.stylesheetSwitchAll(window.content, args); window.stylesheetSwitchAll(window.content, arg);
}, },
{ {
argCount: "?", argCount: "?",