Skip to content

Commit 7ff88be

Browse files
leoiii12ihadeed
authored andcommitted
fix(image-loader): fix webkit related issue (#82)
Closes #80
1 parent 2f1dbb9 commit 7ff88be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/providers/image-loader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ export class ImageLoader {
6767
}
6868

6969
private get isWKWebView(): boolean {
70-
return this.platform.is('ios') && (<any>window).webkit;
70+
return this.platform.is('ios') && (<any>window).webkit && (<any>window).webkit.messageHandlers;
7171
}
7272

7373
private get isIonicWKWebView(): boolean {
74-
return this.isWKWebView && location.host === 'localhost:8080';
74+
return this.isWKWebView && (location.host === 'localhost:8080' || (<any>window).LiveReload);
7575
}
7676

7777
constructor(

0 commit comments

Comments
 (0)