Skip to content

Commit 61a5032

Browse files
committed
fix(image-loader): only clear cache on Cordova platform
1 parent 2b717d8 commit 61a5032

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/providers/image-loader.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ export class ImageLoader {
5757
*/
5858
clearCache(): void {
5959

60+
if (typeof cordova === 'undefined') return;
61+
6062
const clear = () => {
6163

6264
if (!this.isInit) {

0 commit comments

Comments
 (0)