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