Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
Run through prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
timuric committed Mar 11, 2019
1 parent 221738b commit 03990ad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/CachedImage/CachedImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ class CachedImage extends React.Component<CachedImageProps, CachedImageState> {
}
}

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]));
}
}

Expand Down

0 comments on commit 03990ad

Please sign in to comment.