diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/+layout.svelte | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index e2cb4132..a61d0a29 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -9,7 +9,7 @@ import settings from "$stores/settings"; import { browser } from "$app/environment"; import HeadTitle from "$lib/Home/HeadTitle.svelte"; import "../app.css"; -import { readable, type Readable } from "svelte/store"; +import { get, readable, type Readable } from "svelte/store"; import { navigating } from "$app/stores"; import { onNavigate } from "$app/navigation"; import NotificationsProvider from "$lib/Notification/NotificationsProvider.svelte"; @@ -94,6 +94,7 @@ $: if ($navigating) isMenuOpen = false; onNavigate((navigation) => { if (!("startViewTransition" in document)) return; if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return; + if (get(settings).displayDisableAnimations) return; const fromPath = navigation.from?.url.pathname ?? "/"; const toPath = navigation.to?.url.pathname ?? "/"; |