mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 10:57:58 +01:00
minor refactoring of pagestyle#command
This commit is contained in:
@@ -471,7 +471,7 @@ liberator.Buffer = function () //{{{
|
||||
{
|
||||
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);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user