Unverified Commit 0d90c7c2 authored by Maarten de Waard's avatar Maarten de Waard 🤘🏻
Browse files

fix bug in language cookie

parent 5563dbc6
......@@ -70,7 +70,7 @@
expiryDate = expiryDate.setMonth(expiryDate.getMonth() + 12);
var domain = window.location.hostname;
var cookieParams = "domain=." + domain + ";path=/;SameSite=Strict;";
if (window.location.protocol == "https") {
if (window.location.protocol == "https:") {
cookieParams += "secure=true;";
}
document.cookie = "openedx-language-preference=" + lang + ";expires=" + expiryDate + ";" + cookieParams;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment