We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63bdb06 commit 6f0842fCopy full SHA for 6f0842f
1 file changed
src/lib/tour/onboarding-state.ts
@@ -35,7 +35,15 @@ export function hasSeenWelcome(): boolean {
35
36
export function markWelcomed(): void {
37
try {
38
- document.cookie = `${WELCOME_COOKIE_NAME}=${CURRENT_WELCOME_VERSION}; path=/; expires=${WELCOME_COOKIE_EXPIRES.toUTCString()}; SameSite=Lax`;
+ cookieStore
39
+ .set({
40
+ name: WELCOME_COOKIE_NAME,
41
+ value: String(CURRENT_WELCOME_VERSION),
42
+ path: '/',
43
+ expires: WELCOME_COOKIE_EXPIRES.getTime(),
44
+ sameSite: 'lax',
45
+ })
46
+ .catch(() => {});
47
} catch {
48
// ignore
49
}
0 commit comments