aboutsummaryrefslogtreecommitdiff
path: root/static/js/themes.js
diff options
context:
space:
mode:
authorKushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com>2021-10-05 18:49:08 -0300
committerFChannel <>2022-06-19 12:52:40 -0700
commit83d8bc02be90950f0661f56f8d4b12d330dbfdcc (patch)
tree72039e2e93c13ac67bcd92f0249d8843c8e3b7e1 /static/js/themes.js
parente490998c196e5c7a64e8903a500078f5c98e3dad (diff)
apply theme on load using a cookie
Diffstat (limited to 'static/js/themes.js')
-rw-r--r--static/js/themes.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/js/themes.js b/static/js/themes.js
index 3f1b906..1d89e60 100644
--- a/static/js/themes.js
+++ b/static/js/themes.js
@@ -1,5 +1,5 @@
function setCookie(key, value, age) {
- document.cookie = key + "=" + encodeURIComponent(value) + ";sameSite=strict;max-age=" + 60 * 60 * 24 * age + ";path=/";
+ document.cookie = key + "=" + encodeURIComponent(value) + ";sameSite=none;max-age=" + (60 * 60 * 24 * age) + ";path=/";
}
function getCookie(key) {