Fix lang toggle
All checks were successful
Build and test backend / Build-backend (pull_request) Successful in 2m3s
Build and test backend / Test-backend (pull_request) Successful in 2m4s
Build and test FrontEnd / Build-frontend (pull_request) Successful in 25s

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 :/
}