1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 16:32:27 +01:00

unify the presentation of split style sheets when completing :pagestyle

This commit is contained in:
Doug Kearns
2008-08-31 05:55:48 +00:00
parent 6353b76f6d
commit 509a2cf75c
2 changed files with 16 additions and 8 deletions

View File

@@ -571,9 +571,8 @@ liberator.Buffer = function () //{{{
{
var stylesheets = getAllStyleSheets(window.content);
// TODO: how should we handle duplicate titles?
stylesheets = stylesheets.filter(function (stylesheet) {
return !(!/^(screen|all|)$/i.test(stylesheet.media.mediaText) || /^\s*$/.test(stylesheet.title));
return /^(screen|all|)$/i.test(stylesheet.media.mediaText) && !/^\s*$/.test(stylesheet.title);
});
return stylesheets;