Skip to content

Commit

Permalink
Update: Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nodonisko committed Jul 21, 2016
1 parent ff9a0ec commit 55e648b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,5 +229,5 @@ this.cache.disableCache(true);
If you want disable "don't invalidate" when device is offline, you can do it simply.
```js
this.cache.setOfflineInvalidate(true);
this.cache.setOfflineInvalidate(false);
```
2 changes: 1 addition & 1 deletion src/cache.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class CacheService {
* @param {boolean} offlineInvalidate
*/
public setOfflineInvalidate(offlineInvalidate: boolean) {
this.invalidateOffline = offlineInvalidate;
this.invalidateOffline = !offlineInvalidate;
}

/**
Expand Down

0 comments on commit 55e648b

Please sign in to comment.