mirror of
https://github.com/bitwarden/browser
synced 2026-01-09 20:13:42 +00:00
[PM-26944] phishing data checksum diffing + daily patches (#16983)
* expose local db file to extension * fetch from local db as fallback; only fetch new data on changed checksum; fetch from cdn * check for undefined chrome runtime (for easy Storybook mocking) * update capital letters lint * add audit api tests * add bash script to fetch local db info and split it to meet FF size limits * add readme * Rename README.md to readme.md * remove leftover file * remove unused methods from audit service * remove local db logic * wip * revert local db build changes * add tests; sub to updates directly; refactor teardown logic * fix eslint crashing * remove temp premium override * remove unused test * update timer value * run prettier * refetch all domains on app version change * fix log statement * harden fetching * filter empty domains * fix type issue * fix typo * fix type error * fix cleanup
This commit is contained in:
@@ -80,9 +80,4 @@ export class AuditService implements AuditServiceAbstraction {
|
||||
throw new Error();
|
||||
}
|
||||
}
|
||||
|
||||
async getKnownPhishingDomains(): Promise<string[]> {
|
||||
const response = await this.apiService.send("GET", "/phishing-domains", null, true, true);
|
||||
return response as string[];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user