diff --git a/src/components/CachedImage/CachedImage.tsx b/src/components/CachedImage/CachedImage.tsx index eb7b8bdf17..596af86b17 100644 --- a/src/components/CachedImage/CachedImage.tsx +++ b/src/components/CachedImage/CachedImage.tsx @@ -41,10 +41,12 @@ class CachedImage extends React.Component { } } - addImagesToCache(){ - if("caches" in window) { + addImagesToCache() { + if ("caches" in window) { const { url, url2x } = this.props; - window.caches.open('image-cache').then((cache) => cache.addAll([ url, url2x ])); + window.caches + .open("image-cache") + .then(cache => cache.addAll([url, url2x])); } }