Navigation Menu

Skip to content

Commit

Permalink
fix(platform): add additional check for safari PWA
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi committed Feb 1, 2019
1 parent a415001 commit a584f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/utils/platform.ts
Expand Up @@ -104,7 +104,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 a584f6e

Please sign in to comment.