ui: fix css resolver semi insert

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

View file

@ -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 {