mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
use regualar fetch for hibp apis
This commit is contained in:
@@ -28,7 +28,7 @@ export class AuditService implements AuditServiceAbstraction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async breachedAccounts(username: string): Promise<BreachAccountResponse[]> {
|
async breachedAccounts(username: string): Promise<BreachAccountResponse[]> {
|
||||||
const response = await this.apiService.fetch(new Request(HibpBreachApi + username));
|
const response = await fetch(new Request(HibpBreachApi + username));
|
||||||
if (response.status === 404) {
|
if (response.status === 404) {
|
||||||
return [];
|
return [];
|
||||||
} else if (response.status !== 200) {
|
} else if (response.status !== 200) {
|
||||||
|
|||||||
Reference in New Issue
Block a user