1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-11-15 01:25:25 +01:00
This commit is contained in:
Matthias Kretschmann 2021-03-13 04:40:35 +01:00
parent c62ac036ec
commit 88c164a8a7
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -39,7 +39,7 @@ export default function useDarkMode() {
}, [])
useEffect(() => {
if (!isClient) return
if (!isClient || process.env.NODE_ENV === 'test') return
const darkModeQuery = window.matchMedia('(prefers-color-scheme: dark)')