fix localization
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
window.CookieReader = {
|
||||
window.cookies = {
|
||||
Read: function (name) {
|
||||
try {
|
||||
const match = document.cookie.match(new RegExp('(^| )' + name + '=([^;]+)'));
|
||||
@@ -32,10 +32,3 @@ window.setHtmlLang = function (lang) {
|
||||
if (document && document.documentElement) document.documentElement.lang = lang || '';
|
||||
} catch (e) { }
|
||||
};
|
||||
|
||||
// simple cookies wrapper used earlier as cookies.Write
|
||||
window.cookies = {
|
||||
Write: function (name, value, expiresIso) {
|
||||
return window.CookieReader.Write(name, value, expiresIso);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user