mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
@ -93,7 +93,7 @@ const isCapacitorNative = (win: any): boolean => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const isElectron = (win: Window): boolean =>
|
const isElectron = (win: Window): boolean =>
|
||||||
testUserAgent(win, /electron/);
|
testUserAgent(win, /electron/i);
|
||||||
|
|
||||||
const isPWA = (win: Window): boolean =>
|
const isPWA = (win: Window): boolean =>
|
||||||
(win as any).matchMedia ? (win.matchMedia('(display-mode: standalone)').matches || (win.navigator as any).standalone) : false;
|
(win as any).matchMedia ? (win.matchMedia('(display-mode: standalone)').matches || (win.navigator as any).standalone) : false;
|
||||||
|
|||||||
Reference in New Issue
Block a user