From c89603b4682e3f35f93d76a8918c25fbb435b68c Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 8 Jul 2024 19:45:35 -0700 Subject: feat(settings): only show anilist notification toggle in pwa --- src/lib/Settings/Categories/Display.svelte | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/lib/Settings/Categories/Display.svelte b/src/lib/Settings/Categories/Display.svelte index 05f51ca3..7a1accdd 100644 --- a/src/lib/Settings/Categories/Display.svelte +++ b/src/lib/Settings/Categories/Display.svelte @@ -183,20 +183,22 @@ {/if} -

+{#if window.matchMedia('(display-mode: standalone)').matches} +

- - - Periodically check and display recent AniList notifications as a native platform notification -
- This may be useful for users who have installed due.moe as a PWA or on mobile devices, since AniList - has no official mobile app. -
-
+ + + Periodically check and display recent AniList notifications as a native platform notification +
+ This may be useful for users who have installed due.moe as a PWA or on mobile devices, since AniList + has no official mobile app. +
+
+{/if}

-- cgit v1.2.3