From 32610b55272bda72b192e4f2be962cae83842ae4 Mon Sep 17 00:00:00 2001 From: chenpei Date: Mon, 17 Aug 2026 11:59:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=B4=A0=E6=9D=90=E7=BD=91=E6=A0=BC?= =?UTF-8?q?=E9=AA=A8=E6=9E=B6=E5=8A=A8=E6=95=88=E9=81=BF=E5=BC=80=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E7=AB=AF=E9=A2=84=E6=B8=B2=E6=9F=93=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=20window?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/home/MaterialGrid.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/home/MaterialGrid.tsx b/components/home/MaterialGrid.tsx index 4c8ef44..896b037 100644 --- a/components/home/MaterialGrid.tsx +++ b/components/home/MaterialGrid.tsx @@ -52,7 +52,7 @@ function MaterialGridSkeleton() { const rootRef = useRef(null) useGSAP(() => { - if (typeof window.matchMedia !== 'function') return + if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') return const motion = gsap.matchMedia() motion.add('(prefers-reduced-motion: no-preference)', () => {