1
0
forked from PGL/Clyde

Fix lang toggle

This is not perfect as the toggle is not set to the right position when
the site is reload but as @Wal_ said he would refactor, I just made a
working sample good enough imo
This commit is contained in:
2024-03-08 22:00:15 +01:00
parent 03ff0c0568
commit 619d2601f1
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ export function getCookie(key){
* @param key cookie name
*/
export function setCookie(key, value){
cookie = key + "=" + value + ";";
let cookie = key + "=" + value + "; SameSite=Lax";
document.cookie = cookie;
// Here we can apreciate the stupidity of Javascript :/
}