mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-20 21:05:41 +02:00
minor refactoring of pagestyle#command
This commit is contained in:
1 parent
ab5ce77baf
commit
510de4ef93
1 file changed
+1
-1
+1
-1
@@ -471,7 +471,7 @@ liberator.Buffer = function () //{{{
|
|||||||
{
|
{
|
||||||
var titles = liberator.buffer.alternateStyleSheets.map(function (stylesheet) { return stylesheet.title; });
|
var titles = liberator.buffer.alternateStyleSheets.map(function (stylesheet) { return stylesheet.title; });
|
||||||
|
|
||||||
if (args && !titles.some(function (title) { return title == args; }))
|
if (args && titles.indexOf(args) == -1)
|
||||||
{
|
{
|
||||||
liberator.echoerr("E475: Invalid argument: " + args);
|
liberator.echoerr("E475: Invalid argument: " + args);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in new issue
Block a user