1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:48:10 +00:00

LibWeb: Fix bogus condition when checking CSS font file extensions

Thanks Idan for pointing this out! :^)
This commit is contained in:
Andreas Kling 2022-09-15 01:20:02 +02:00
parent 6d92c1d231
commit 1c0fc75cb6

View file

@ -1368,7 +1368,7 @@ void StyleComputer::load_fonts_from_sheet(CSSStyleSheet const& sheet)
auto path = source.url.path();
if (!path.ends_with(".woff"sv, AK::CaseSensitivity::CaseInsensitive)
|| path.ends_with(".ttf"sv, AK::CaseSensitivity::CaseInsensitive)) {
&& !path.ends_with(".ttf"sv, AK::CaseSensitivity::CaseInsensitive)) {
continue;
}