mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb/IDB: Use correct key comparison when doing Index lookup
This commit is contained in:
parent
64c4bea189
commit
f3a31c98ea
|
|
@ -51,7 +51,7 @@ void Index::set_name(String name)
|
|||
bool Index::has_record_with_key(GC::Ref<Key> key)
|
||||
{
|
||||
auto index = m_records.find_if([&key](auto const& record) {
|
||||
return record.key == key;
|
||||
return Key::equals(record.key, key);
|
||||
});
|
||||
|
||||
return index != m_records.end();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user