summaryrefslogtreecommitdiff
path: root/public/js/locale.js
diff options
context:
space:
mode:
authorDavid Mehren2020-09-25 22:39:30 +0200
committerGitHub2020-09-25 22:39:30 +0200
commit3461993ee05d09106e276e606b143d472908b166 (patch)
treec17c788b6f39f3ae91e249f48cc653b3d13b6c0b /public/js/locale.js
parentf862b7a1e44c1101a921f19bca4d8d8063eb25ce (diff)
parent4ece86f0efa1f8f3e4dab0abf810800a045ce632 (diff)
Merge pull request #486 from codimd/feature/cookie-policy
Diffstat (limited to 'public/js/locale.js')
-rw-r--r--public/js/locale.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/locale.js b/public/js/locale.js
index aca35b98..8baa77fc 100644
--- a/public/js/locale.js
+++ b/public/js/locale.js
@@ -31,7 +31,7 @@ if (localeSelector.length > 0) {
localeSelector.change(function () {
Cookies.set('locale', $(this).val(), {
expires: 365,
- sameSite: 'strict'
+ sameSite: window.cookiePolicy
})
window.location.reload()
})