web: attempt to drop fetch errors

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-11-23 23:29:25 +01:00
parent 5b9e6bed6c
commit 7c9f821bfd
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ export function configureSentry(canDoPpi: boolean = false): Promise<Config> {
if ((hint.originalException as Error | undefined)?.name == 'NetworkError') {
return null;
}
if ((hint.originalException as Error | undefined)?.name.includes("fetch")) {
return null;
}
}
if (hint.originalException instanceof Response || hint.originalException instanceof DOMException) {
return null;