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