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:
parent
6d92c1d231
commit
1c0fc75cb6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue