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:
@@ -1169,10 +1169,10 @@ function Completion() //{{{
|
||||
let styles = {};
|
||||
|
||||
buffer.alternateStyleSheets.forEach(function (style) {
|
||||
if (style.title in styles)
|
||||
styles[style.title].push(style.href);
|
||||
else
|
||||
styles[style.title] = [style.href];
|
||||
if (!(style.title in styles))
|
||||
styles[style.title] = [];
|
||||
|
||||
styles[style.title].push(style.href || "inline");
|
||||
});
|
||||
|
||||
context.completions = [[s, styles[s].join(", ")] for (s in styles)];
|
||||
|
||||
Reference in New Issue
Block a user