summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/static/js/collapse.js2
-rw-r--r--templates/layouts/app.html.ep2
2 files changed, 2 insertions, 2 deletions
diff --git a/public/static/js/collapse.js b/public/static/js/collapse.js
index 9726df6..4c078f0 100644
--- a/public/static/js/collapse.js
+++ b/public/static/js/collapse.js
@@ -5,7 +5,7 @@
*/
function setLang(lang) {
- document.cookie = 'lang=' + lang;
+ document.cookie = 'lang=' + lang + ';SameSite=None;Secure';
location.reload();
}
diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep
index cb8a163..a9716c7 100644
--- a/templates/layouts/app.html.ep
+++ b/templates/layouts/app.html.ep
@@ -31,7 +31,7 @@
const old = document.getElementById(id);
if (old && (old.href != path)) {
old.href = path;
- document.cookie = 'theme=' + name;
+ document.cookie = 'theme=' + name + ';SameSite=None;Secure';
}
}
const otherTheme = {