1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 07:13:32 +00:00

use regualar fetch for hibp apis

This commit is contained in:
Kyle Spearrin
2018-09-11 15:54:18 -04:00
parent d0ad865060
commit 04f6b44d54

View File

@@ -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) {