mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
AK: Port URL::m_query from DeprecatedString to String
This commit is contained in:
committed by
Andrew Kaster
parent
55a01e72ca
commit
21fe86d235
@@ -253,7 +253,7 @@ WebIDL::ExceptionOr<String> Location::search() const
|
||||
auto url = this->url();
|
||||
|
||||
// 2. If this's url's query is either null or the empty string, return the empty string.
|
||||
if (url.query().is_empty())
|
||||
if (!url.query().has_value() || url.query()->is_empty())
|
||||
return String {};
|
||||
|
||||
// 3. Return "?", followed by this's url's query.
|
||||
|
||||
Reference in New Issue
Block a user