Skip to content

Commit

Permalink
Merge pull request #17355 from ionic-team/update-pwa-check
Browse files Browse the repository at this point in the history
fix(platform): add additional check for safari PWA
  • Loading branch information
liamdebeasi committed Apr 26, 2019
1 parent 9e0b027 commit 9941911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/utils/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function isElectron(win: Window): boolean {
}

function isPWA(win: Window): boolean {
return win.matchMedia('(display-mode: standalone)').matches;
return win.matchMedia('(display-mode: standalone)').matches || (win.navigator as any).standalone;
}

function testUserAgent(win: Window, expr: RegExp) {
Expand Down

0 comments on commit 9941911

Please sign in to comment.