mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
feat(core): add check for standalone mode (#15001)
* feat(core): add check for standalone mode * feat(): add check for isStandalone * feat(core): add check for standalone mode
This commit is contained in:
@ -57,6 +57,10 @@ export function isElectron(win: Window): boolean {
|
||||
return testUserAgent(win, /electron/);
|
||||
}
|
||||
|
||||
export function isStandaloneMode(win: Window): boolean {
|
||||
return win.matchMedia('(display-mode: standalone)').matches;
|
||||
}
|
||||
|
||||
export function needInputShims(win: Window) {
|
||||
return isIOS(win) && isDevice(win);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user