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

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;