mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 23:02: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:
@@ -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)];
|
||||||
|
|||||||
Reference in New Issue
Block a user