ui: fix css resolver semi insert
This commit is contained in:
parent
568c1f211e
commit
c239d8d080
1 changed files with 2 additions and 2 deletions
|
|
@ -29,8 +29,8 @@ function rewriteCSSLinks(
|
|||
);
|
||||
|
||||
// Ensure the CSS ends with a semicolon
|
||||
const hasSemi = css.trim().endsWith(';') || css.trim().endsWith('}');
|
||||
return hasSemi ? css : css + ';';
|
||||
const dontNeedSemi = css.trim().endsWith(';') || css.trim().endsWith('}');
|
||||
return dontNeedSemi ? css : css + ';';
|
||||
}
|
||||
|
||||
function rewritePseudoclasses(css: string): string {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue