fix: HttpOnly not support to config on client js (#585)

This commit is contained in:
Birdgg
2023-05-25 21:15:24 +01:00
committed by GitHub
parent ddd6d1909c
commit a839332b63
+1 -1
View File
@@ -206,7 +206,7 @@ export const useDarkMode = () => {
date.setMonth(date.getMonth() + 1)
document.cookie = IS_DEV
? `color_scheme=${colorScheme};`
: `color_scheme=${colorScheme}; Domain=.${OUR_DOMAIN}; Path=/; Secure; HttpOnly; expires=${date.toUTCString()}`
: `color_scheme=${colorScheme}; Domain=.${OUR_DOMAIN}; Path=/; Secure; expires=${date.toUTCString()}`
}, [value])
const onceRef = useRef(false)