mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 13:47:57 +01:00
use literalArg in :pagestyle action
This commit is contained in:
@@ -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: "?",
|
||||||
|
|||||||
Reference in New Issue
Block a user