mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
hide paste amount menu item for ios
This commit is contained in:
@@ -19,6 +19,14 @@ export interface Framework7Dom {
|
||||
css(property: string): string | number;
|
||||
}
|
||||
|
||||
export function isiOS(): boolean {
|
||||
return ((/iphone|ipod|ipad/gi).test(navigator.platform) && (/Safari/i).test(navigator.appVersion));
|
||||
}
|
||||
|
||||
export function isiOSHomeScreenMode(): boolean {
|
||||
return isiOS() && !!window.matchMedia && window.matchMedia('(display-mode: standalone)').matches;
|
||||
}
|
||||
|
||||
export function showLoading(delayConditionFunc?: () => boolean, delayMills?: number): void {
|
||||
if (!delayConditionFunc) {
|
||||
f7ready((f7) => {
|
||||
|
||||
Reference in New Issue
Block a user