mirror of
https://github.com/bitwarden/browser
synced 2026-01-27 23:03:45 +00:00
Change hostname to href in hasUrl check
This commit is contained in:
@@ -161,8 +161,8 @@ export class PhishingDataService {
|
||||
const resource = getPhishingResources(this.resourceType);
|
||||
|
||||
try {
|
||||
// Quick lookup: check direct presence of hostname in IndexedDB
|
||||
const hasUrl = await this.indexedDbService.hasUrl(url.hostname);
|
||||
// Quick lookup: check direct presence of href in IndexedDB
|
||||
const hasUrl = await this.indexedDbService.hasUrl(url.href);
|
||||
if (hasUrl) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user