Skip to content

Commit

Permalink
Fix cookie string
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jul 30, 2024
1 parent d66446b commit 427edd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nationalarchives/lib/cookies.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export default class Cookies {
}
const cookie = `${encodeURIComponent(key)}=${encodeURIComponent(value)};${
domain ? ` domain=${domain}; ` : ""
} samesite=${sameSite}; path=${path};${maxAge !== null ? ` max-age=${maxAge}` : ""}${
} samesite=${sameSite}; path=${path}${maxAge !== null ? `; max-age=${maxAge}` : ""}${
secure ? "; secure" : ""
}`;
document.cookie = cookie;
Expand Down

0 comments on commit 427edd8

Please sign in to comment.