Skip to content

Commit

Permalink
Merge pull request #283 from imzyxwvu/fix/media-type
Browse files Browse the repository at this point in the history
media_query: Treat unknown media type as none
  • Loading branch information
tordex committed Jan 17, 2024
2 parents ef0a2cd + 17b52a6 commit 8c32000
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/media_query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ litehtml::media_query::ptr litehtml::media_query::create_from_string(const strin
}
} else
{
query->m_media_type = (media_type) value_index(token, media_type_strings, media_type_all);

query->m_media_type = (media_type) value_index(token, media_type_strings, media_type_none);
}
}

Expand Down

0 comments on commit 8c32000

Please sign in to comment.