Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed Dec 29, 2024
1 parent 449ee64 commit 1d2d9bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/js/core/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,10 @@ export function sanitizeCSS(css) {
try {
sanitizer = new CSSStyleSheet();
} catch (e) {
log.log("Failed to sanitize dictionary styles")
log.log('Failed to sanitize dictionary styles');
log.warn(e);
return css;
}
sanitizer.replaceSync(css);
return Array.from(sanitizer.cssRules).map(rule => rule.cssText || '').join('\n');
return [...sanitizer.cssRules].map((rule) => rule.cssText || '').join('\n');
}

0 comments on commit 1d2d9bc

Please sign in to comment.