Skip to content

Commit

Permalink
fix(image-loader): only clear cache on Cordova platform
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Feb 7, 2017
1 parent 2b717d8 commit 61a5032
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/providers/image-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ export class ImageLoader {
*/
clearCache(): void {

if (typeof cordova === 'undefined') return;

const clear = () => {

if (!this.isInit) {
Expand Down

0 comments on commit 61a5032

Please sign in to comment.