diff --git a/static/skin/index.js b/static/skin/index.js
index aa84bbf77..b93253aaa 100644
--- a/static/skin/index.js
+++ b/static/skin/index.js
@@ -46,7 +46,7 @@
window.modalUILanguageSelector.close();
const s = document.getElementById("ui_language");
const lang = s.options[s.selectedIndex].value;
- setPermanentGlobalCookie('userlang', lang);
+ localStorage.setItem('userlang', lang);
window.location.reload();
}
@@ -585,11 +585,6 @@
setInterval(updateNavVisibilityState, 250);
};
- // required by i18n.js:setUserLanguage()
- window.setPermanentGlobalCookie = function(name, value) {
- document.cookie = `${name}=${value};path=${root};max-age=31536000`;
- }
-
window.onload = () => { setUserLanguage(getUserLanguage(), onload); }
})();
diff --git a/static/templates/index.html b/static/templates/index.html
index b94971dbd..ec887ab55 100644
--- a/static/templates/index.html
+++ b/static/templates/index.html
@@ -37,6 +37,7 @@
src: url("{{root}}/skin/fonts/Roboto.ttf?KIWIXCACHEID") format("truetype");
}
+
diff --git a/test/server.cpp b/test/server.cpp
index ce32ffb26..a565a3536 100644
--- a/test/server.cpp
+++ b/test/server.cpp
@@ -63,7 +63,7 @@ const ResourceCollection resources200Compressible{
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/index.css" },
{ STATIC_CONTENT, "/ROOT%23%3F/skin/index.css?cacheid=e4d76d16" },
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/index.js" },
- { STATIC_CONTENT, "/ROOT%23%3F/skin/index.js?cacheid=07b06fca" },
+ { STATIC_CONTENT, "/ROOT%23%3F/skin/index.js?cacheid=e1b1ae55" },
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/iso6391To3.js" },
{ STATIC_CONTENT, "/ROOT%23%3F/skin/iso6391To3.js?cacheid=ecde2bb3" },
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/isotope.pkgd.min.js" },
@@ -288,7 +288,7 @@ R"EXPECTEDRESULT( href="/ROOT%23%3F/skin/index.css?cacheid=e4d76d16"
-
+
