Commit 6424d2e6 authored by Maarten de Waard's avatar Maarten de Waard 🤘🏻
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent 13b422eb
......@@ -71,7 +71,7 @@
var domain = window.location.hostname;
var cookieParams = "domain=." + domain + ";path=/;SameSite=Strict;";
if (window.location.protocol == "https") {
cookieParams += "secure=true;"
cookieParams += "secure=true;";
}
document.cookie = "openedx-language-preference=" + lang + ";expires=" + expiryDate + ";" + cookieParams;
};
......
Supports Markdown
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