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

use "inline" for the location of inline alternate stylesheets in the completion list - accidentally removed in last related commit

This commit is contained in:
Doug Kearns
2008-12-10 13:47:30 +11:00
parent fe6cb037b3
commit ea1049ee90

View File

@@ -1169,10 +1169,10 @@ function Completion() //{{{
let styles = {}; let styles = {};
buffer.alternateStyleSheets.forEach(function (style) { buffer.alternateStyleSheets.forEach(function (style) {
if (style.title in styles) if (!(style.title in styles))
styles[style.title].push(style.href); styles[style.title] = [];
else
styles[style.title] = [style.href]; styles[style.title].push(style.href || "inline");
}); });
context.completions = [[s, styles[s].join(", ")] for (s in styles)]; context.completions = [[s, styles[s].join(", ")] for (s in styles)];