Skip to content
Permalink
Browse files

fix(platform): add additional check for safari PWA

  • Loading branch information...
liamdebeasi committed Feb 1, 2019
1 parent a415001 commit a584f6e6dabcf7ab1b38f7bc3ca99260d0a13709
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/utils/platform.ts
@@ -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) {

0 comments on commit a584f6e

Please sign in to comment.
You can’t perform that action at this time.