1
0

94233: Fixed tests

This commit is contained in:
lotte
2022-09-22 17:07:09 +02:00
parent 08577f5f17
commit d68f38e848
5 changed files with 17 additions and 7 deletions

View File

@@ -87,8 +87,7 @@ export class CSSVariableService {
* @return array<KeyValuePair<string, string>>
* ex; [{key: "--color-accent", value: "#b9f500"}, {key: "--color-text", value: "#252525"}, ...]
*/
getCSSVariablesFromStylesheets(document: Document): KeyValuePair<string, string>[]
{
getCSSVariablesFromStylesheets(document: Document): KeyValuePair<string, string>[] {
// styleSheets is array-like, so we convert it to an array.
// Filter out any stylesheets not on this domain
return [...document.styleSheets]