diff --git a/media/script.js b/media/script.js index dcb1ad5..11e43c8 100644 --- a/media/script.js +++ b/media/script.js @@ -107,7 +107,8 @@ function ObjectToTree(obj, prefix) { } function side() { const ls = document.getElementById('lang-select'); - ls.innerHTML = Object.keys(data).map(l=>``).sort().join(''); + let before = ls.value ?? ''; + ls.innerHTML = Object.keys(data).map(l=>``).sort().join(''); document.getElementById('tree').innerHTML = ObjectToTree(data[main]??(data[Object.keys(data)[0]]??{}), ''); } window.side = side;