From 8c57e68ec0ec7792167da37d6dd576bf58f1dbcd Mon Sep 17 00:00:00 2001 From: dongjiang Date: Fri, 17 Jul 2026 14:57:23 +0800 Subject: [PATCH 1/2] fix: expose Observer on window so theme toggle can access it The IIFE wrapper scoped Observer locally, breaking the reference from the first script block (theme toggle calls Observer.removeAnimationDelay()). Changed `const Observer` to `window.Observer` to keep it globally accessible while still avoiding redeclaration errors on View Transitions. Signed-off-by: dongjiang --- src/components/common/BasicScripts.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/common/BasicScripts.astro b/src/components/common/BasicScripts.astro index 594f7f5..1e9cc5c 100644 --- a/src/components/common/BasicScripts.astro +++ b/src/components/common/BasicScripts.astro @@ -230,7 +230,7 @@ import { translations } from '~/utils/translations';