1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 19:42:26 +01:00

minor refactoring of pagestyle#command

This commit is contained in:
Doug Kearns
2008-09-01 01:15:03 +00:00
parent ab5ce77baf
commit 510de4ef93

View File

@@ -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;