ui: fix css resolver semi insert

This commit is contained in:
nick-delirium 2024-10-31 12:26:16 +01:00
parent bf818d2683
commit 568c1f211e
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0

View file

@ -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 + ';';
}