Skip to content

Commit

Permalink
fix: set path: '/' in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrich committed Jan 1, 2024
1 parent 6419d3e commit fbf80d7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const actions = {
game.guesses[i] += key;
}

cookies.set('sverdle', game.toString(), { path: '' });
cookies.set('sverdle', game.toString(), { path: '/' });
},

/**
Expand All @@ -62,10 +62,10 @@ export const actions = {
return fail(400, { badGuess: true });
}

cookies.set('sverdle', game.toString(), { path: '' });
cookies.set('sverdle', game.toString(), { path: '/' });
},

restart: async ({ cookies }) => {
cookies.delete('sverdle', { path: '' });
cookies.delete('sverdle', { path: '/' });
}
} satisfies Actions;

0 comments on commit fbf80d7

Please sign in to comment.