diff --git a/src/lib/components/ui/InstallBanner.svelte b/src/lib/components/ui/InstallBanner.svelte index 87f9370ed..11dccd8cd 100644 --- a/src/lib/components/ui/InstallBanner.svelte +++ b/src/lib/components/ui/InstallBanner.svelte @@ -42,7 +42,11 @@ return localStorage.getItem("install-banner-dismissed") === "true" } - let showBanner = !(isElectron() || isTauri() || isCapacitor() || isBannerClosed()) + function isMobile(): boolean { + return /Android|iPhone|iPad|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) + } + + let showBanner = !(isElectron() || isTauri() || isMobile() || isBannerClosed()) let platform = detectPlatform() function closeBanner() {