catch caches undefined error

This commit is contained in:
Dan Percic 2023-03-02 12:48:22 +02:00
parent 1fda6967b1
commit 33fb6b0525

View File

@ -12,7 +12,11 @@ export class CacheApiService {
}
get cachesAvailable(): boolean {
return !!caches;
try {
return !!caches;
} catch (e) {
return false;
}
}
cacheRequest(request: HttpRequest<any>, httpResponse: HttpResponse<any>) {