Skip to content

Commit

Permalink
fix(image-loader): fix webkit related issue (#82)
Browse files Browse the repository at this point in the history
Closes #80
  • Loading branch information
leoiii12 authored and ihadeed committed Sep 2, 2017
1 parent 2f1dbb9 commit 7ff88be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/image-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ export class ImageLoader {
}

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

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

constructor(
Expand Down

0 comments on commit 7ff88be

Please sign in to comment.