catch caches undefined error
This commit is contained in:
parent
1fda6967b1
commit
33fb6b0525
@ -12,7 +12,11 @@ export class CacheApiService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get cachesAvailable(): boolean {
|
get cachesAvailable(): boolean {
|
||||||
return !!caches;
|
try {
|
||||||
|
return !!caches;
|
||||||
|
} catch (e) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cacheRequest(request: HttpRequest<any>, httpResponse: HttpResponse<any>) {
|
cacheRequest(request: HttpRequest<any>, httpResponse: HttpResponse<any>) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user