Skip to content

Commit 55e648b

Browse files
committed
Update: Minor changes
1 parent ff9a0ec commit 55e648b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,5 +229,5 @@ this.cache.disableCache(true);
229229
If you want disable "don't invalidate" when device is offline, you can do it simply.
230230
231231
```js
232-
this.cache.setOfflineInvalidate(true);
232+
this.cache.setOfflineInvalidate(false);
233233
```

src/cache.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class CacheService {
7373
* @param {boolean} offlineInvalidate
7474
*/
7575
public setOfflineInvalidate(offlineInvalidate: boolean) {
76-
this.invalidateOffline = offlineInvalidate;
76+
this.invalidateOffline = !offlineInvalidate;
7777
}
7878

7979
/**

0 commit comments

Comments
 (0)